diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-04-09 20:51:25 (GMT) |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-04-30 11:24:45 (GMT) |
commit | 3cc6e78777ae6f577b67e26c76577ef357ac9009 (patch) | |
tree | 8cccce48bed67565582171f8946ff877599f386e /drivers/remoteproc/remoteproc_core.c | |
parent | cf92549f1c95e0b1fd980828c35416dc2e548d2b (diff) | |
download | linux-3cc6e78777ae6f577b67e26c76577ef357ac9009.tar.xz |
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/remoteproc_core.c')
-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 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); } |