]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: remove unwanted operator [smatch scan]
authorKarel Zak <kzak@redhat.com>
Thu, 21 Mar 2013 07:12:35 +0000 (08:12 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Mar 2013 07:12:35 +0000 (08:12 +0100)
Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/fdisksunlabel.c

index 66f459bf53d0a5db0dd092766b8645efcb95fa74..2226f4c778f16d7661680072f69c1bf412979aec 100644 (file)
@@ -314,7 +314,7 @@ static int sun_toggle_partition_flag(struct fdisk_context *cxt, size_t i, unsign
        assert(cxt->label);
        assert(fdisk_is_disklabel(cxt, SUN));
 
-       if (!i >= cxt->label->nparts_max)
+       if (i >= cxt->label->nparts_max)
                return -EINVAL;
 
        sunlabel = self_disklabel(cxt);