All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pankaj Raghav <p.raghav@samsung.com>
To: Chris Mason <clm@fb.com>, David Sterba <dsterba@suse.com>,
	Josef Bacik <josef@toxicpanda.com>
Cc: Pankaj Raghav <pankydev8@gmail.com>,
	linux-btrfs@vger.kernel.org, joshiiitr@gmail.com,
	Johannes.Thumshirn@wdc.com, Pankaj Raghav <p.raghav@samsung.com>
Subject: [PATCH v2] btrfs: zoned: Remove redundant assignment in btrfs_check_zoned_mode
Date: Fri,  4 Feb 2022 13:00:22 +0100	[thread overview]
Message-ID: <20220204120022.101289-1-p.raghav@samsung.com> (raw)
In-Reply-To: CGME20220204120024eucas1p24a253ca559b0ba10f6e1f2c72dbd06d8@eucas1p2.samsung.com

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


       reply	other threads:[~2022-02-04 12:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20220204120024eucas1p24a253ca559b0ba10f6e1f2c72dbd06d8@eucas1p2.samsung.com>
2022-02-04 12:00 ` Pankaj Raghav [this message]
2022-02-04 12:07   ` [PATCH v2] btrfs: zoned: Remove redundant assignment in btrfs_check_zoned_mode Johannes Thumshirn
2022-02-04 16:14   ` David Sterba

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220204120022.101289-1-p.raghav@samsung.com \
    --to=p.raghav@samsung.com \
    --cc=Johannes.Thumshirn@wdc.com \
    --cc=clm@fb.com \
    --cc=dsterba@suse.com \
    --cc=josef@toxicpanda.com \
    --cc=joshiiitr@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=pankydev8@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.