]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: remove redundant assignment to variable bit
authorColin Ian King <colin.king@canonical.com>
Fri, 17 Nov 2017 04:11:33 +0000 (22:11 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 17 Nov 2017 04:11:33 +0000 (22:11 -0600)
Source kernel commit: c06641169e861d6446a220cd7f0d22c6c88da8e1

Variable bit is being assigned a value that is never read, hence
the assignment is redundant and can be removed. Cleans up clang
warning:

fs/xfs/libxfs/xfs_rtbitmap.c:675:3: warning: Value stored to
'bit' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_rtbitmap.c

index 8da151b7dbb3a2f1add2fec580dae07bc2c05154..9970c481407d0dd6e28d064290d0945967ed5d0a 100644 (file)
@@ -667,7 +667,6 @@ xfs_rtmodify_range(
                /*
                 * Compute a mask of relevant bits.
                 */
-               bit = 0;
                mask = ((xfs_rtword_t)1 << lastbit) - 1;
                /*
                 * Set/clear the active bits.