From 06fb6eabebab21967407994b48de323a25466e8d Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 5 Aug 2015 12:55:30 +0200 Subject: [PATCH] libfdisk: remove impossible condition [smatch scan] Signed-off-by: Karel Zak --- libfdisk/src/sgi.c | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.47.2