summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs
diff options
context:
space:
mode:
authorColin Ian King2017-10-31 17:56:06 +0100
committerDarrick J. Wong2017-10-31 20:03:35 +0100
commitc06641169e861d6446a220cd7f0d22c6c88da8e1 (patch)
treef0719375a8ccb630fa44ed695ed5b3fccf2845d8 /fs/xfs/libxfs
parentxfs: fix unused variable warning in xfs_buf_set_ref() (diff)
downloadkernel-qcow2-linux-c06641169e861d6446a220cd7f0d22c6c88da8e1.tar.gz
kernel-qcow2-linux-c06641169e861d6446a220cd7f0d22c6c88da8e1.tar.xz
kernel-qcow2-linux-c06641169e861d6446a220cd7f0d22c6c88da8e1.zip
xfs: remove redundant assignment to variable bit
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>
Diffstat (limited to 'fs/xfs/libxfs')
-rw-r--r--fs/xfs/libxfs/xfs_rtbitmap.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_rtbitmap.c b/fs/xfs/libxfs/xfs_rtbitmap.c
index 4523a92d5507..3fb29a5ea915 100644
--- a/fs/xfs/libxfs/xfs_rtbitmap.c
+++ b/fs/xfs/libxfs/xfs_rtbitmap.c
@@ -672,7 +672,6 @@ xfs_rtmodify_range(
/*
* Compute a mask of relevant bits.
*/
- bit = 0;
mask = ((xfs_rtword_t)1 << lastbit) - 1;
/*
* Set/clear the active bits.