summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/dos.c
diff options
context:
space:
mode:
authorKarel Zak2015-02-06 10:24:18 +0100
committerKarel Zak2015-02-06 10:24:18 +0100
commitc603d076f89e02002ee1b025a739a2777edfa783 (patch)
tree155c0945993bfc8f7e0e9679962a2e3ee3124547 /libfdisk/src/dos.c
parentlscpu: detect also QEMU emulation on ppc (diff)
downloadkernel-qcow2-util-linux-c603d076f89e02002ee1b025a739a2777edfa783.tar.gz
kernel-qcow2-util-linux-c603d076f89e02002ee1b025a739a2777edfa783.tar.xz
kernel-qcow2-util-linux-c603d076f89e02002ee1b025a739a2777edfa783.zip
libfdisk: make code more readable
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/dos.c')
-rw-r--r--libfdisk/src/dos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c
index 08533bbe4..de54bea12 100644
--- a/libfdisk/src/dos.c
+++ b/libfdisk/src/dos.c
@@ -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)) {