]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blkzone: remove never read value
authorKarel Zak <kzak@redhat.com>
Thu, 23 May 2019 11:57:35 +0000 (13:57 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 23 May 2019 11:57:35 +0000 (13:57 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/blkzone.c

index 5fd5da7a368b3accec6e89460853164bba41317c..dabc16f8825d114fed62798ee359ce1f22737ff0 100644 (file)
@@ -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];