All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] btrfs: zoned: Remove redundant assignment in btrfs_check_zoned_mode
       [not found] <CGME20220204120024eucas1p24a253ca559b0ba10f6e1f2c72dbd06d8@eucas1p2.samsung.com>
@ 2022-02-04 12:00 ` Pankaj Raghav
  2022-02-04 12:07   ` Johannes Thumshirn
  2022-02-04 16:14   ` David Sterba
  0 siblings, 2 replies; 3+ messages in thread
From: Pankaj Raghav @ 2022-02-04 12:00 UTC (permalink / raw)
  To: Chris Mason, David Sterba, Josef Bacik
  Cc: Pankaj Raghav, linux-btrfs, joshiiitr, Johannes.Thumshirn, Pankaj Raghav

Remove the redundant assignment to zone_info variable in
btrfs_check_zoned_mode function.

Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
---
 fs/btrfs/zoned.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c
index 3aad1970ee43..b7b5fac1c779 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++;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] btrfs: zoned: Remove redundant assignment in btrfs_check_zoned_mode
  2022-02-04 12:00 ` [PATCH v2] btrfs: zoned: Remove redundant assignment in btrfs_check_zoned_mode Pankaj Raghav
@ 2022-02-04 12:07   ` Johannes Thumshirn
  2022-02-04 16:14   ` David Sterba
  1 sibling, 0 replies; 3+ messages in thread
From: Johannes Thumshirn @ 2022-02-04 12:07 UTC (permalink / raw)
  To: Pankaj Raghav, Chris Mason, David Sterba, Josef Bacik
  Cc: Pankaj Raghav, linux-btrfs, joshiiitr

Looks good,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] btrfs: zoned: Remove redundant assignment in btrfs_check_zoned_mode
  2022-02-04 12:00 ` [PATCH v2] btrfs: zoned: Remove redundant assignment in btrfs_check_zoned_mode Pankaj Raghav
  2022-02-04 12:07   ` Johannes Thumshirn
@ 2022-02-04 16:14   ` David Sterba
  1 sibling, 0 replies; 3+ messages in thread
From: David Sterba @ 2022-02-04 16:14 UTC (permalink / raw)
  To: Pankaj Raghav
  Cc: Chris Mason, David Sterba, Josef Bacik, Pankaj Raghav,
	linux-btrfs, joshiiitr, Johannes.Thumshirn

On Fri, Feb 04, 2022 at 01:00:22PM +0100, Pankaj Raghav wrote:
> Remove the redundant assignment to zone_info variable in
> btrfs_check_zoned_mode function.
> 
> Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>

Added to misc-next, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-04 16:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20220204120024eucas1p24a253ca559b0ba10f6e1f2c72dbd06d8@eucas1p2.samsung.com>
2022-02-04 12:00 ` [PATCH v2] btrfs: zoned: Remove redundant assignment in btrfs_check_zoned_mode Pankaj Raghav
2022-02-04 12:07   ` Johannes Thumshirn
2022-02-04 16:14   ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.