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:
c69a6ca
)
typhoon: get rid of redundant conditional before all to release_firmware()
author
Jesper Juhl
<jj@chaosbits.net>
Mon, 9 Apr 2012 20:50:10 +0000
(22:50 +0200)
committer
Jiri Kosina
<jkosina@suse.cz>
Mon, 30 Apr 2012 11:16:45 +0000
(13:16 +0200)
There's no need to test for a NULL pointer before calling
release_firmware() since the function does that check itself, so
remove the redundant test.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: David Dillow <dave@thedillows.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/net/ethernet/3com/typhoon.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/3com/typhoon.c
b/drivers/net/ethernet/3com/typhoon.c
index 1234a14b2b73b0bc2a0e478c6910c0b45dcfab07..b153666351474ea3a527f6deb97b750c490f39e6 100644
(file)
--- a/
drivers/net/ethernet/3com/typhoon.c
+++ b/
drivers/net/ethernet/3com/typhoon.c
@@
-2549,8
+2549,7
@@
typhoon_init(void)
static void __exit
typhoon_cleanup(void)
{
- if (typhoon_fw)
- release_firmware(typhoon_fw);
+ release_firmware(typhoon_fw);
pci_unregister_driver(&typhoon_driver);
}