Commit 60915f83 authored by Colin Ian King's avatar Colin Ian King Committed by Darrick J. Wong

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: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent 1e6fa688
...@@ -1258,8 +1258,6 @@ xfs_buf_ioapply_map( ...@@ -1258,8 +1258,6 @@ xfs_buf_ioapply_map(
int size; int size;
int offset; int offset;
total_nr_pages = bp->b_page_count;
/* skip the pages in the buffer before the start offset */ /* skip the pages in the buffer before the start offset */
page_index = 0; page_index = 0;
offset = *buf_offset; offset = *buf_offset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment