Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);