Skip to contentSkip to conversation

btrfs: zoned: Remove redundant assignment in btrfs_check_zoned_mode

PATCH In review Pankaj Raghav 3 participants 3 messages Feb 4, 2022 1 message not in the archive Btrfs file system

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20220204120024eucas1p24a253ca559b0ba10f6e1f2c72dbd06d8@eucas1p2.samsung.com

#1 lore raw

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.

---
 fs/btrfs/zoned.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/btrfs/zoned.c +1 -2
index 3aad1970ee43..b7b5fac1c779 100644
@@ -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