]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Remove redundant assignment to busy
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 2 Jun 2021 21:56:29 +0000 (14:56 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 2 Jun 2021 21:56:29 +0000 (14:56 -0700)
commitf0a91a21bcdfee508744d29ab1fb7f2ed9154210
treeeca8a5a6a4c409fcd523f605a032dce1a3076e31
parent0d586250f111955d5ab1acf931eb5a161fa4bc9e
xfs: Remove redundant assignment to busy

Variable busy is set to false, but this value is never read as it is
overwritten or not used later on, hence it is a redundant assignment
and can be removed.

Clean up the following clang-analyzer warning:

fs/xfs/libxfs/xfs_alloc.c:1679:2: warning: Value stored to 'busy' is
never read [clang-analyzer-deadcode.DeadStores].

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_alloc.c