src/chgtype.c: remove redundant check

This commit is contained in:
Christophe Grenier 2022-07-14 09:32:18 +02:00
parent 0162c86872
commit e9503f31f6

View file

@ -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)
{