btrfs: zoned: Remove redundant assignment in btrfs_check_zoned_mode
A message that is not in the archive (sent off-list or not yet received): CGME20220204120024eucas1p24a253ca559b0ba10f6e1f2c72dbd06d8@eucas1p2.samsung.com
PATCH v2 1/1 btrfs: zoned: Remove redundant assignment in btrfs_check_zoned_mode
Remove the redundant assignment to zone_info variable in btrfs_check_zoned_mode function.
Signed-off-by Pankaj Raghav <[email protected]>
--- fs/btrfs/zoned.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/btrfs/zoned.c +1 -2
@@ -652,8 +652,7 @@ int btrfs_check_zoned_mode(struct btrfs_fs_info *fs_info)if (model ==BLK_ZONED_HM || (model ==BLK_ZONED_HA && incompat_zoned) || (model ==BLK_ZONED_NONE && incompat_zoned)) { -struct btrfs_zoned_device_info *zone_info = - device->zone_info; +struct btrfs_zoned_device_info *zone_info; zone_info = device->zone_info; zoned_devices++;
Signature · 1 line
2.25.1
Looks good,
Reviewed-by Johannes Thumshirn <[email protected]>
Quoted 4 lines · Pankaj Raghav
Remove the redundant assignment to
zone_infovariable inbtrfs_check_zoned_modefunction.Signed-off-by Pankaj Raghav <[email protected]>
Added to misc-next, thanks.