diff options
author | Darrick J. Wong <[email protected]> | 2017-11-02 12:48:11 -0700 |
---|---|---|
committer | Darrick J. Wong <[email protected]> | 2017-11-03 09:45:56 -0700 |
commit | 0dca060c2a5a83dc8bd28eb2d8b559bd33238175 (patch) | |
tree | ef12f345c836461cdeef2d6de6f30155f009c9ab /lib/mpi/mpiutil.c | |
parent | 350976ae21873b0d36584ea005076356431b8f79 (diff) |
xfs: scrub: avoid uninitialized return code
The newly added xfs_scrub_da_btree_block() function has one code path
that returns the 'error' variable without initializing it first, as
shown by this compiler warning:
fs/xfs/scrub/dabtree.c: In function 'xfs_scrub_da_btree_block':
fs/xfs/scrub/dabtree.c:462:9: error: 'error' may be used uninitialized in this function [-Werror=maybe-uninitialized]
Return zero since the caller will exit the scrub code if we don't produce a
buffer pointer.
Fixes: 7c4a07a424c1 ("xfs: scrub directory/attribute btrees")
Reported-by: Arnd Bergmann <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Brian Foster <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions