summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2012-04-09 22:51:25 +0200
committerJiri Kosina <jkosina@suse.cz>2012-04-30 13:24:45 +0200
commit3cc6e78777ae6f577b67e26c76577ef357ac9009 (patch)
tree8cccce48bed67565582171f8946ff877599f386e /drivers/remoteproc
parentcf92549f1c95e0b1fd980828c35416dc2e548d2b (diff)
downloadop-kernel-dev-3cc6e78777ae6f577b67e26c76577ef357ac9009.zip
op-kernel-dev-3cc6e78777ae6f577b67e26c76577ef357ac9009.tar.gz
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 ee15c68..3d2884b 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)
goto out;
out:
- if (fw)
- release_firmware(fw);
+ release_firmware(fw);
/* allow rproc_unregister() contexts, if any, to proceed */
complete_all(&rproc->firmware_loading_complete);
}
OpenPOWER on IntegriCloud