From c400e535aabee35aeb9297db5bbc5f4a76fe8f8c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 26 Feb 2014 13:02:02 +0100 Subject: [PATCH] fdisk: remove unnecessary code Signed-off-by: Karel Zak --- fdisks/fdisk.c | 2 -- 1 file changed, 2 deletions(-) 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'."), -- 2.47.2