]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: make code more readable
authorKarel Zak <kzak@redhat.com>
Fri, 6 Feb 2015 09:24:18 +0000 (10:24 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 6 Feb 2015 09:24:18 +0000 (10:24 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/dos.c

index 08533bbe48faaa9e006672fb099cd7d5e221cbff..de54bea1234c0ee1f1ae43e03d6b02ba712d25ae 100644 (file)
@@ -1585,7 +1585,7 @@ static int dos_add_partition(struct fdisk_context *cxt,
                                const char *msg;
                                if (!free_primary)
                                        msg = _("All primary partitions are in use.");
-                               else if (!free_sectors)
+                               else
                                        msg =  _("All space for primary partitions is in use.");
 
                                if (pa && fdisk_partition_has_start(pa)) {