From 106bd306a4b4948adef1ffe47898170bbb3ac38f Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 23 May 2019 13:57:35 +0200 Subject: blkzone: remove never read value Signed-off-by: Karel Zak --- sys-utils/blkzone.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys-utils') diff --git a/sys-utils/blkzone.c b/sys-utils/blkzone.c index 5fd5da7a3..dabc16f88 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]; -- cgit v1.2.3-55-g7522