]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: remove redundant initializations of pointers drop_leaf and save_leaf
authorColin Ian King <colin.i.king@gmail.com>
Wed, 6 Sep 2023 09:20:47 +0000 (11:20 +0200)
committerCarlos Maiolino <cem@kernel.org>
Thu, 7 Sep 2023 09:55:50 +0000 (11:55 +0200)
commitd03a3c4b235c6ecdda9b27d5f31115ad710b5912
tree5a99d77838b1693f91f19ead6f71f587b9dc904a
parent95957f34cea3e69089c35c27a77d81acd55e5023
xfs: remove redundant initializations of pointers drop_leaf and save_leaf

Source kernel commit: 347eb95b27eb97bebdc3ea7de23558216f4e2c90

Pointers drop_leaf and save_leaf are initialized with values that are never
read, they are being re-assigned later on just before they are used. Remove
the redundant early initializations and keep the later assignments at the
point where they are used. Cleans up two clang scan build warnings:

fs/xfs/libxfs/xfs_attr_leaf.c:2288:29: warning: Value stored to 'drop_leaf'
during its initialization is never read [deadcode.DeadStores]
fs/xfs/libxfs/xfs_attr_leaf.c:2289:29: warning: Value stored to 'save_leaf'
during its initialization is never read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_attr_leaf.c