diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-11-19 19:49:11 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-12-10 08:51:33 -0200 |
commit | 2213918a99d6292767b6d4aae3e3f4b0520528a5 (patch) | |
tree | 1338d161286480a138fcccbd817df577d74eada8 | |
parent | 76db93d03f1e9a9a3371f787ae30780cdf10400c (diff) | |
download | linux-2213918a99d6292767b6d4aae3e3f4b0520528a5.tar.gz linux-2213918a99d6292767b6d4aae3e3f4b0520528a5.tar.bz2 linux-2213918a99d6292767b6d4aae3e3f4b0520528a5.zip |
V4L/DVB (4847): Drivers/media/dvb/frontends: kfree() cleanups
We don't have to check for NULL before kfree()
Acked-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/dvb/frontends/dvb-pll.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/tda826x.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/tua6100.c | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/drivers/media/dvb/frontends/dvb-pll.c b/drivers/media/dvb/frontends/dvb-pll.c index b7e7108ee5b3..78114fc26724 100644 --- a/drivers/media/dvb/frontends/dvb-pll.c +++ b/drivers/media/dvb/frontends/dvb-pll.c @@ -478,8 +478,7 @@ EXPORT_SYMBOL(dvb_pll_configure); static int dvb_pll_release(struct dvb_frontend *fe) { - if (fe->tuner_priv) - kfree(fe->tuner_priv); + kfree(fe->tuner_priv); fe->tuner_priv = NULL; return 0; } diff --git a/drivers/media/dvb/frontends/tda826x.c b/drivers/media/dvb/frontends/tda826x.c index 34815b0b97e4..4f01d7b47cd5 100644 --- a/drivers/media/dvb/frontends/tda826x.c +++ b/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; } diff --git a/drivers/media/dvb/frontends/tua6100.c b/drivers/media/dvb/frontends/tua6100.c index 88554393a9bf..6ba0029dcf2e 100644 --- a/drivers/media/dvb/frontends/tua6100.c +++ b/drivers/media/dvb/frontends/tua6100.c @@ -43,8 +43,7 @@ struct tua6100_priv { static int tua6100_release(struct dvb_frontend *fe) { - if (fe->tuner_priv) - kfree(fe->tuner_priv); + kfree(fe->tuner_priv); fe->tuner_priv = NULL; return 0; } |