From: Colin Ian King Date: Fri, 17 Nov 2017 04:11:33 +0000 (-0600) Subject: xfs: remove redundant assignment to variable bit X-Git-Tag: v4.15.0-rc1~143^2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d92c880efcc5099099783d2ca6cca0e917a1973d;p=thirdparty%2Fxfsprogs-dev.git xfs: remove redundant assignment to variable bit 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 Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_rtbitmap.c b/libxfs/xfs_rtbitmap.c index 8da151b7d..9970c4814 100644 --- a/libxfs/xfs_rtbitmap.c +++ b/libxfs/xfs_rtbitmap.c @@ -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.