The variables are local and go out of scope anyway, so no point in NULLing just before scope ends. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- common/partitions/efi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/partitions/efi.c b/common/partitions/efi.c index 968b959397b5..af7eacfe3b68 100644 --- a/common/partitions/efi.c +++ b/common/partitions/efi.c @@ -122,7 +122,6 @@ static gpt_entry *alloc_read_gpt_entries(struct block_device *blk, ret = block_read(blk, pte, from, size); if (ret) { free(pte); - pte=NULL; return NULL; } return pte; @@ -157,7 +156,6 @@ static gpt_header *alloc_read_gpt_header(struct block_device *blk, ret = block_read(blk, gpt, lba, 1); if (ret) { free(gpt); - gpt=NULL; return NULL; } -- 2.39.5