* [PATCH 32/37] dvb: nxt200x: remove null check before kfree()
@ 2005-11-01 8:16 Michael Krufky
0 siblings, 0 replies; only message in thread
From: Michael Krufky @ 2005-11-01 8:16 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel, linux-dvb-maintainer
[-- Attachment #1: Type: text/plain, Size: 2 bytes --]
[-- Attachment #2: 2409.patch --]
[-- Type: text/x-patch, Size: 601 bytes --]
Removed unnecessary null check before kfree()
...inspired by the big patch from Jesper Juhl.
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
drivers/media/dvb/frontends/nxt200x.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- linux-2.6.14-git3.orig/drivers/media/dvb/frontends/nxt200x.c
+++ linux-2.6.14-git3/drivers/media/dvb/frontends/nxt200x.c
@@ -1159,8 +1159,7 @@
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-01 8:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-01 8:16 [PATCH 32/37] dvb: nxt200x: remove null check before kfree() Michael Krufky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox