projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf92549
)
remoteproc: remove redundant NULL check before release_firmware()
author
Jesper Juhl
<jj@chaosbits.net>
Mon, 9 Apr 2012 20:51:25 +0000
(22:51 +0200)
committer
Jiri Kosina
<jkosina@suse.cz>
Mon, 30 Apr 2012 11:24:45 +0000
(13:24 +0200)
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>
drivers/remoteproc/remoteproc_core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/remoteproc/remoteproc_core.c
b/drivers/remoteproc/remoteproc_core.c
index ee15c68fb5192cfb03ac9cb2207be17bbc17abc0..3d2884b0a4fcdc7cb3f600a7e15eee13720b5544 100644
(file)
--- 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);
}