summaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-09-18 22:38:46 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2017-09-26 03:22:30 +0200
commit60915f83cd1e021a66fc1503a446aef5c772553a (patch)
treef9b77cee7b511a1d11d7defbeb835ab0ebe4edf5 /fs/xfs
parentxfs: Output warning message when discard option was enabled even though the d... (diff)
downloadlinux-60915f83cd1e021a66fc1503a446aef5c772553a.tar.xz
linux-60915f83cd1e021a66fc1503a446aef5c772553a.zip
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 <colin.king@canonical.com> Reviewed-by: Brian Foster <bfoster@redhat.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')
-rw-r--r--fs/xfs/xfs_buf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
index da14658da310..2f97c12ca75e 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;