Commit 3cc6e787 authored by Jesper Juhl's avatar Jesper Juhl Committed by Jiri Kosina

remoteproc: remove redundant NULL check before release_firmware()

release_firmware deals gracefully with NULL pointers, so checking
first is redundant.
Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent cf92549f
...@@ -1105,8 +1105,7 @@ static void rproc_fw_config_virtio(const struct firmware *fw, void *context) ...@@ -1105,8 +1105,7 @@ static void rproc_fw_config_virtio(const struct firmware *fw, void *context)
goto out; goto out;
out: out:
if (fw) release_firmware(fw);
release_firmware(fw);
/* allow rproc_unregister() contexts, if any, to proceed */ /* allow rproc_unregister() contexts, if any, to proceed */
complete_all(&rproc->firmware_loading_complete); complete_all(&rproc->firmware_loading_complete);
} }
......
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