diff options
author | Michael Krufky <mkrufky@m1k.net> | 2005-11-08 21:35:48 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 07:56:05 -0800 |
commit | 6d35ae3d1137c92a315b7ff10aecd45b1f37d99e (patch) | |
tree | d996d012f09916739c91ea0705367faa56d0ca8e /drivers/media/dvb/frontends/nxt200x.c | |
parent | c6dd2d5d61b000509e3a7f6c06778b16a4ef10ba (diff) | |
download | kernel_samsung_smdk4412-6d35ae3d1137c92a315b7ff10aecd45b1f37d99e.zip kernel_samsung_smdk4412-6d35ae3d1137c92a315b7ff10aecd45b1f37d99e.tar.gz kernel_samsung_smdk4412-6d35ae3d1137c92a315b7ff10aecd45b1f37d99e.tar.bz2 |
[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>
Diffstat (limited to 'drivers/media/dvb/frontends/nxt200x.c')
-rw-r--r-- | drivers/media/dvb/frontends/nxt200x.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/nxt200x.c b/drivers/media/dvb/frontends/nxt200x.c index d1b9f8b..97ee801 100644 --- 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; |