From: Pankaj Raghav
Date: Fri, 4 Feb 2022 12:00:22 +0000 (+0100)
Subject: btrfs: zoned: remove redundant assignment in btrfs_check_zoned_mode
X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=f716fa4798df82f858afb9876f6d2e9f37a0d5c7;p=kernel.git
btrfs: zoned: remove redundant assignment in btrfs_check_zoned_mode
Remove the redundant assignment to zone_info variable in
btrfs_check_zoned_mode function.
Reviewed-by: Johannes Thumshirn
Signed-off-by: Pankaj Raghav
Signed-off-by: David Sterba
---
diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c
index 3aad1970ee430..b7b5fac1c7790 100644
--- a/fs/btrfs/zoned.c
+++ b/fs/btrfs/zoned.c
@@ -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++;