projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6dd2d5
)
[PATCH] dvb: nxt200x: remove null check before kfree()
author
Michael Krufky
<mkrufky@m1k.net>
Wed, 9 Nov 2005 05:35:48 +0000
(21:35 -0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:05 +0000
(07:56 -0800)
Removed unnecessary null check before kfree() ...inspired by the big patch
from Jesper Juhl.
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/frontends/nxt200x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/media/dvb/frontends/nxt200x.c
b/drivers/media/dvb/frontends/nxt200x.c
index d1b9f8b9b43749a864b613e2a944b13f7920c808..97ee8017dac8307da5894a9d4252216dbfc84b36 100644
(file)
--- a/
drivers/media/dvb/frontends/nxt200x.c
+++ b/
drivers/media/dvb/frontends/nxt200x.c
@@
-1159,8
+1159,7
@@
struct dvb_frontend* nxt200x_attach(const struct nxt200x_config* config,
return &state->frontend;
error:
- if (state)
- kfree(state);
+ kfree(state);
printk("Unknown/Unsupported NXT chip: %02X %02X %02X %02X %02X\n",
buf[0], buf[1], buf[2], buf[3], buf[4]);
return NULL;