Commit d5974af7 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt 💬

efi_loader: remove superfluous check in efi_setup_loaded_image()

It does not make any sense to check if a pointer is NULL if we have
dereferenced it before.

Reported-by: Coverity (CID 185827)
Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent 1fd7a476
......@@ -1581,10 +1581,8 @@ efi_status_t efi_setup_loaded_image(struct efi_device_path *device_path,
goto failure;
#endif
if (info_ptr)
*info_ptr = info;
if (handle_ptr)
*handle_ptr = obj;
*info_ptr = info;
*handle_ptr = obj;
return ret;
failure:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment