]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxfs: remove dead size < 0 checks in libxfs_init
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Dec 2023 16:37:36 +0000 (17:37 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 18 Dec 2023 13:57:49 +0000 (14:57 +0100)
commitf735961188fce99ac70a605bd7f5046accb5da2b
tree8bb01f5afb3007a81f0c2600d81665bacb4fad6f
parenta3106f3292ad49301437cff111a6a945e5305fe4
libxfs: remove dead size < 0 checks in libxfs_init

libxfs_init initializes the device size to 0 at the start of the function
and libxfs_open_device never sets the size to a negativ value.  Remove
these checks as they are dead code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/init.c