summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/tda826x.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-11-19 17:49:11 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2006-11-19 17:49:11 -0500
commit2ae35ace4793a2030014f74c49856bbefb6f9e05 (patch)
tree5b141f17e80b368158a5d736b97ba8ae77d94097 /linux/drivers/media/dvb/frontends/tda826x.c
parent294d93fa8164775bbabde48a5b7cdb88a9b4c109 (diff)
downloadmediapointer-dvb-s2-2ae35ace4793a2030014f74c49856bbefb6f9e05.tar.gz
mediapointer-dvb-s2-2ae35ace4793a2030014f74c49856bbefb6f9e05.tar.bz2
drivers/media/dvb/frontends: kfree() cleanups
From: Michael Krufky <mkrufky@linuxtv.org> We don't have to check for NULL before kfree() Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/tda826x.c')
-rw-r--r--linux/drivers/media/dvb/frontends/tda826x.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda826x.c b/linux/drivers/media/dvb/frontends/tda826x.c
index 34815b0b9..4f01d7b47 100644
--- a/linux/drivers/media/dvb/frontends/tda826x.c
+++ b/linux/drivers/media/dvb/frontends/tda826x.c
@@ -42,8 +42,7 @@ struct tda826x_priv {
static int tda826x_release(struct dvb_frontend *fe)
{
- if (fe->tuner_priv)
- kfree(fe->tuner_priv);
+ kfree(fe->tuner_priv);
fe->tuner_priv = NULL;
return 0;
}