]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: remove unused code [clang scan]
authorKarel Zak <kzak@redhat.com>
Wed, 15 May 2019 14:59:52 +0000 (16:59 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 15 May 2019 14:59:52 +0000 (16:59 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/dos.c

index fba95371295a41c3df82c790d21511fd94d8aebf..40b9aa758ca159bd6a4a1da44e08e84032439cdc 100644 (file)
@@ -1741,7 +1741,6 @@ static int dos_add_partition(struct fdisk_context *cxt,
                                  "been created."));
                return -EINVAL;
        }
-       rc = 1;
 
        if (!free_primary || !free_sectors) {
                DBG(LABEL, ul_debug("DOS: primary impossible, add logical"));