From: Karel Zak Date: Wed, 26 Feb 2014 12:02:02 +0000 (+0100) Subject: fdisk: remove unnecessary code X-Git-Tag: v2.25-rc1~467 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c400e535aabee35aeb9297db5bbc5f4a76fe8f8c;p=thirdparty%2Futil-linux.git fdisk: remove unnecessary code Signed-off-by: Karel Zak --- diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c index ba99fe74fc..d2494ef9f4 100644 --- a/fdisks/fdisk.c +++ b/fdisks/fdisk.c @@ -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'."),