From: Karel Zak Date: Wed, 5 Aug 2015 10:55:30 +0000 (+0200) Subject: libfdisk: remove impossible condition [smatch scan] X-Git-Tag: v2.27-rc2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06fb6eabebab21967407994b48de323a25466e8d;p=thirdparty%2Futil-linux.git libfdisk: remove impossible condition [smatch scan] Signed-off-by: Karel Zak --- diff --git a/libfdisk/src/sgi.c b/libfdisk/src/sgi.c index 8e0c0e72ba..6228cf87db 100644 --- a/libfdisk/src/sgi.c +++ b/libfdisk/src/sgi.c @@ -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;