mirror of
https://github.com/torvalds/linux.git
synced 2024-10-30 16:51:45 +00:00
remoteproc: remove redundant NULL check before release_firmware()
release_firmware deals gracefully with NULL pointers, so checking first is redundant. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
cf92549f1c
commit
3cc6e78777
@ -1105,7 +1105,6 @@ static void rproc_fw_config_virtio(const struct firmware *fw, void *context)
|
||||
goto out;
|
||||
|
||||
out:
|
||||
if (fw)
|
||||
release_firmware(fw);
|
||||
/* allow rproc_unregister() contexts, if any, to proceed */
|
||||
complete_all(&rproc->firmware_loading_complete);
|
||||
|
Loading…
Reference in New Issue
Block a user