]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove set but not used variable 'offset'
authorYueHaibing <yuehaibing@huawei.com>
Tue, 2 Jul 2019 14:15:21 +0000 (22:15 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:58:58 +0000 (14:58 +0200)
commit016ac5f48c96984d5d7fa7d4200d3df988b8c7a0
treee250bda46b6e25fc1c90be1be6bf2b4c04004de5
parent24e265db0c44c6f25c1ff767c41254bc61999de8
btrfs: remove set but not used variable 'offset'

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

fs/btrfs/volumes.c: In function __btrfs_map_block:
fs/btrfs/volumes.c:6023:6: warning:
 variable offset set but not used [-Wunused-but-set-variable]

It is not used any more since commit 343abd1c0ca9 ("btrfs: Use
btrfs_get_io_geometry appropriately")

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c