]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: remove unnecessary code
authorKarel Zak <kzak@redhat.com>
Wed, 26 Feb 2014 12:02:02 +0000 (13:02 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 11 Mar 2014 10:35:14 +0000 (11:35 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/fdisk.c

index ba99fe74fc877401e07bf4248a8e034803e385ee..d2494ef9f4d05e5da72355bb9eb7f4e22c666c72 100644 (file)
@@ -182,8 +182,6 @@ void change_partition_type(struct fdisk_context *cxt)
                t = ask_partition_type(cxt);
        } while (!t);
 
-       fdisk_partition_set_type(pa, t);
-
        if (fdisk_set_partition_type(cxt, i, t) == 0)
                fdisk_sinfo(cxt, FDISK_INFO_SUCCESS,
                        _("Changed type of partition '%s' to '%s'."),