diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-04-09 22:51:25 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-04-30 13:24:45 +0200 |
commit | 3cc6e78777ae6f577b67e26c76577ef357ac9009 (patch) | |
tree | 8cccce48bed67565582171f8946ff877599f386e /drivers/remoteproc | |
parent | cf92549f1c95e0b1fd980828c35416dc2e548d2b (diff) | |
download | kernel-common-3cc6e78777ae6f577b67e26c76577ef357ac9009.tar.gz kernel-common-3cc6e78777ae6f577b67e26c76577ef357ac9009.tar.bz2 kernel-common-3cc6e78777ae6f577b67e26c76577ef357ac9009.zip |
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.c | 3 |
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) 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); } |