summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorMichael Krufky <devnull@localhost>2005-10-27 06:01:39 +0000
committerMichael Krufky <devnull@localhost>2005-10-27 06:01:39 +0000
commitcfd767aac9bf7478e797ee0973767c8b52512626 (patch)
treea48e9e90babbb3850c5fb704bb9405a0c676c94a /linux/drivers/media/dvb
parente7aaa4aeb027638e3dbc80b6a77d12c2ff75d24b (diff)
downloadmediapointer-dvb-s2-cfd767aac9bf7478e797ee0973767c8b52512626.tar.gz
mediapointer-dvb-s2-cfd767aac9bf7478e797ee0973767c8b52512626.tar.bz2
Removed unnecessary check before kfree
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/frontends/nxt200x.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/nxt200x.c b/linux/drivers/media/dvb/frontends/nxt200x.c
index bd830b88c..e73a172a4 100644
--- a/linux/drivers/media/dvb/frontends/nxt200x.c
+++ b/linux/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;