From: Karel Zak Date: Thu, 23 May 2019 11:57:35 +0000 (+0200) Subject: blkzone: remove never read value X-Git-Tag: v2.34-rc2~28 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Futil-linux.git;a=commitdiff_plain;h=106bd306a4b4948adef1ffe47898170bbb3ac38f blkzone: remove never read value Signed-off-by: Karel Zak --- diff --git a/sys-utils/blkzone.c b/sys-utils/blkzone.c index 5fd5da7a36..dabc16f882 100644 --- a/sys-utils/blkzone.c +++ b/sys-utils/blkzone.c @@ -209,10 +209,8 @@ static int blkzone_report(struct blkzone_control *ctl) printf(_("Found %d zones from 0x%"PRIx64"\n"), zi->nr_zones, ctl->offset); - if (!zi->nr_zones) { - nr_zones = 0; + if (!zi->nr_zones) break; - } for (i = 0; i < zi->nr_zones; i++) { const struct blk_zone *entry = &zi->zones[i];