]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: remove impossible condition [smatch scan]
authorKarel Zak <kzak@redhat.com>
Wed, 5 Aug 2015 10:55:30 +0000 (12:55 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 5 Aug 2015 10:55:30 +0000 (12:55 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/sgi.c

index 8e0c0e72bac690fb03262d99646c7d14cc1f60bc..6228cf87dbbecd30129dd64a9e9de19ce6d6e9df 100644 (file)
@@ -1068,9 +1068,6 @@ static int sgi_set_partition(struct fdisk_context *cxt,
        if (pa->type) {
                struct fdisk_parttype *t = pa->type;
 
-               if (t->code > UINT32_MAX)
-                       return -EINVAL;
-
                if (sgi_get_num_sectors(cxt, i) == 0)   /* caught already before, ... */ {
                        fdisk_warnx(cxt, _("Sorry, only for non-empty partitions you can change the tag."));
                        return -EINVAL;