]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_scrub: fix complaint about uninitialized ret
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Nov 2019 15:06:46 +0000 (10:06 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 11 Nov 2019 15:06:46 +0000 (10:06 -0500)
commitc3387fb8857bcb95ea92f3c94e682f0b483f621b
tree457f49d87f6d882f7426bc06164750f268bb43bc
parentbaed134d7c25d0ea247046ad61cff16f19de541f
xfs_scrub: fix complaint about uninitialized ret

Coverity complained about the uninitialized ret in run_scrub_phases.
It's not sophisticated enough to realize that phase 1 and 7 are both
marked mustrun and are never the repair or datascan dummies and that
therefore ret is always initialized by the end of the for loop, but
OTOH there's no reason not to fix a trivial logic bomb if that ever
changes.

Coverity-id: 1455255
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
scrub/xfs_scrub.c