Re: [PATCH -next] btrfs: Remove unused variable 'fs_info'
From: David Sterba
Date: Wed Aug 26 2020 - 06:49:41 EST
On Wed, Aug 26, 2020 at 02:27:52PM +0800, YueHaibing wrote:
> fs/btrfs/volumes.c: In function ‘btrfs_rm_dev_replace_free_srcdev’:
> fs/btrfs/volumes.c:2217:24: warning: unused variable ‘fs_info’ [-Wunused-variable]
> struct btrfs_fs_info *fs_info = srcdev->fs_info;
> ^~~~~~~
>
> Caused by commit 65237ee3b6b3 ("btrfs: get fs_info from device
> in btrfs_rm_dev_replace_free_srcdev")
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
Fixed in for-next, thanks.