diff options
author | Karel Zak | 2019-05-23 13:57:35 +0200 |
---|---|---|
committer | Karel Zak | 2019-05-23 13:57:35 +0200 |
commit | 106bd306a4b4948adef1ffe47898170bbb3ac38f (patch) | |
tree | 84edc0db97003088cebc8b9a26b15805f194adaf /sys-utils | |
parent | whereis: make subdirs scan more robust (diff) | |
download | kernel-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.c | 4 |
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]; |