From: Colin Ian King Date: Mon, 18 Sep 2017 20:38:46 +0000 (-0700) Subject: xfs: remove redundant re-initialization of total_nr_pages X-Git-Tag: v4.14-rc4~7^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60915f83cd1e021a66fc1503a446aef5c772553a;p=platform%2Fkernel%2Flinux-rpi.git xfs: remove redundant re-initialization of total_nr_pages Variable total_nr_pages is being initialized and then updated with the same value, this latter assignment is redundant and can be removed. Cleans up clang build warning: Value stored to 'total_nr_pages' during its initialization is never read Signed-off-by: Colin Ian King Reviewed-by: Brian Foster Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index da14658..2f97c12c 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c @@ -1258,8 +1258,6 @@ xfs_buf_ioapply_map( int size; int offset; - total_nr_pages = bp->b_page_count; - /* skip the pages in the buffer before the start offset */ page_index = 0; offset = *buf_offset;