xfs: remove redundant re-initialization of total_nr_pages
authorColin Ian King <colin.king@canonical.com>
Mon, 18 Sep 2017 20:38:46 +0000 (13:38 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 26 Sep 2017 01:22:30 +0000 (18:22 -0700)
commit60915f83cd1e021a66fc1503a446aef5c772553a
treef9b77cee7b511a1d11d7defbeb835ab0ebe4edf5
parent1e6fa688bffc0ff419a4c3e78dbaf7aabfb55183
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>
fs/xfs/xfs_buf.c