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:
62baaf3
)
tehuti: delete redundant NULL check before release_firmware()
author
Jesper Juhl
<jj@chaosbits.net>
Mon, 9 Apr 2012 20:50:42 +0000
(22:50 +0200)
committer
Jiri Kosina
<jkosina@suse.cz>
Mon, 30 Apr 2012 11:21:10 +0000
(13:21 +0200)
release_firmware() checks for NULL pointers - no need to test before
the call.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/net/ethernet/tehuti/tehuti.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/tehuti/tehuti.c
b/drivers/net/ethernet/tehuti/tehuti.c
index ad973ffc9ff363acb4ecd923bcd3d93a3b78dc18..a445e777f086dffb22a267b47e1073affe0d78f5 100644
(file)
--- a/
drivers/net/ethernet/tehuti/tehuti.c
+++ b/
drivers/net/ethernet/tehuti/tehuti.c
@@
-341,8
+341,8
@@
static int bdx_fw_load(struct bdx_priv *priv)
out:
if (master)
WRITE_REG(priv, regINIT_SEMAPHORE, 1);
- if (fw)
-
release_firmware(fw);
+
+ release_firmware(fw);
if (rc) {
netdev_err(priv->ndev, "firmware loading failed\n");