From: Colin Ian King Date: Tue, 31 Oct 2017 16:56:06 +0000 (-0700) Subject: xfs: remove redundant assignment to variable bit X-Git-Tag: v4.15-rc1~136^2~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c06641169e861d6446a220cd7f0d22c6c88da8e1;p=thirdparty%2Flinux.git 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 Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- diff --git a/fs/xfs/libxfs/xfs_rtbitmap.c b/fs/xfs/libxfs/xfs_rtbitmap.c index 4523a92d5507f..3fb29a5ea9150 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.