From e9503f31f64653dcc2450e28a264775ce340a271 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Thu, 14 Jul 2022 09:32:18 +0200 Subject: [PATCH] src/chgtype.c: remove redundant check --- src/chgtype.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/chgtype.c b/src/chgtype.c index dbe12fb4..88acae85 100644 --- a/src/chgtype.c +++ b/src/chgtype.c @@ -64,8 +64,6 @@ void change_part_type_cli(const disk_t *disk_car,partition_t *partition, char ** assert(partition!=NULL); if(*current_cmd==NULL || partition->arch==NULL) return ; - if(partition->arch==NULL) - return; #if !defined(SINGLE_PARTITION_TYPE) || defined(SINGLE_PARTITION_GPT) if(partition->arch==&arch_gpt) {