aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2012-04-09 16:51:25 -0400
committerJiri Kosina <jkosina@suse.cz>2012-04-30 07:24:45 -0400
commit3cc6e78777ae6f577b67e26c76577ef357ac9009 (patch)
tree8cccce48bed67565582171f8946ff877599f386e /drivers/remoteproc
parentcf92549f1c95e0b1fd980828c35416dc2e548d2b (diff)
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>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r--drivers/remoteproc/remoteproc_core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index ee15c68fb519..3d2884b0a4fc 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -1105,8 +1105,7 @@ static void rproc_fw_config_virtio(const struct firmware *fw, void *context)
1105 goto out; 1105 goto out;
1106 1106
1107out: 1107out:
1108 if (fw) 1108 release_firmware(fw);
1109 release_firmware(fw);
1110 /* allow rproc_unregister() contexts, if any, to proceed */ 1109 /* allow rproc_unregister() contexts, if any, to proceed */
1111 complete_all(&rproc->firmware_loading_complete); 1110 complete_all(&rproc->firmware_loading_complete);
1112} 1111}