xfs: remove redundant assignment to variable bit
Subsystems (2)
PATCH 1/1 xfs: remove redundant assignment to variable bit
From: Colin Ian King <[email protected]>
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 <[email protected]>
--- fs/xfs/libxfs/xfs_rtbitmap.c | 1 - 1 file changed, 1 deletion(-)
fs/xfs/libxfs/xfs_rtbitmap.c +0 -1
@@ -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.
Signature · 1 line
2.14.1
Quoted 10 lines · Colin King
From: Colin Ian King <[email protected]>
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 readSigned-off-by Colin Ian King <[email protected]>
Looks ok,
Reviewed-by Darrick J. Wong <[email protected]>
Quoted 23 lines
--- fs/xfs/libxfs/xfs_rtbitmap.c | 1 - 1 file changed, 1 deletion(-)fs/xfs/libxfs/xfs_rtbitmap.c +0
-1@@ -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. Signature · 6 lines
2.14.1 -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html