summaryrefslogtreecommitdiffstats
path: root/sys-utils
diff options
context:
space:
mode:
authorKarel Zak2019-05-23 13:57:35 +0200
committerKarel Zak2019-05-23 13:57:35 +0200
commit106bd306a4b4948adef1ffe47898170bbb3ac38f (patch)
tree84edc0db97003088cebc8b9a26b15805f194adaf /sys-utils
parentwhereis: make subdirs scan more robust (diff)
downloadkernel-qcow2-util-linux-106bd306a4b4948adef1ffe47898170bbb3ac38f.tar.gz
kernel-qcow2-util-linux-106bd306a4b4948adef1ffe47898170bbb3ac38f.tar.xz
kernel-qcow2-util-linux-106bd306a4b4948adef1ffe47898170bbb3ac38f.zip
blkzone: remove never read value
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils')
-rw-r--r--sys-utils/blkzone.c4
1 files changed, 1 insertions, 3 deletions
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];