]> asedeno.scripts.mit.edu Git - linux.git/commit
btrfs: remove set but not used variable 'num_pages'
authorYueHaibing <yuehaibing@huawei.com>
Sat, 15 Dec 2018 06:31:07 +0000 (06:31 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:18 +0000 (14:13 +0100)
commitaa704d4e75c1ee4fe8eb6dc448955792fe19c96d
tree4f45ba3bd51f6c8b0eb2015b656d9fd12eaf5427
parent02950af4e3b7dbbb9c5483da4d93d53ed0fd27a8
btrfs: remove set but not used variable 'num_pages'

Fixes gcc '-Wunused-but-set-variable' warning:

fs/btrfs/ioctl.c: In function 'btrfs_extent_same':
fs/btrfs/ioctl.c:3260:6: warning:
 variable 'num_pages' set but not used [-Wunused-but-set-variable]

It not used any more since commit 9ee8234e6220 ("Btrfs: use
generic_remap_file_range_prep() for cloning and deduplication")

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c