efi_loader: remove superfluous NULL check in bootefi.c
[oweals/u-boot.git] / cmd / bootefi.c
index aaed575505968b8f65b4ae89adf9e39b2e251b8e..54b4b8f98455a8af7ccb60abcf1ae8074d45d032 100644 (file)
@@ -481,10 +481,8 @@ efi_status_t efi_run_image(void *source_buffer, efi_uintn_t source_size)
        ret = do_bootefi_exec(handle);
 
 out:
-       if (mem_handle)
-               efi_delete_handle(mem_handle);
-       if (file_path)
-               efi_free_pool(file_path);
+       efi_delete_handle(mem_handle);
+       efi_free_pool(file_path);
        return ret;
 }