[PATCH] dvb: nxt200x: remove null check before kfree()

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>
This commit is contained in:
Michael Krufky 2005-11-08 21:35:48 -08:00 committed by Linus Torvalds
parent c6dd2d5d61
commit 6d35ae3d11
1 changed files with 1 additions and 2 deletions

View File

@ -1159,8 +1159,7 @@ struct dvb_frontend* nxt200x_attach(const struct nxt200x_config* config,
return &state->frontend; return &state->frontend;
error: error:
if (state) kfree(state);
kfree(state);
printk("Unknown/Unsupported NXT chip: %02X %02X %02X %02X %02X\n", printk("Unknown/Unsupported NXT chip: %02X %02X %02X %02X %02X\n",
buf[0], buf[1], buf[2], buf[3], buf[4]); buf[0], buf[1], buf[2], buf[3], buf[4]);
return NULL; return NULL;