diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-11-19 17:49:11 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-12-10 05:51:33 -0500 |
commit | 2213918a99d6292767b6d4aae3e3f4b0520528a5 (patch) | |
tree | 1338d161286480a138fcccbd817df577d74eada8 /drivers/media/dvb/frontends/tda826x.c | |
parent | 76db93d03f1e9a9a3371f787ae30780cdf10400c (diff) |
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>
Diffstat (limited to 'drivers/media/dvb/frontends/tda826x.c')
-rw-r--r-- | drivers/media/dvb/frontends/tda826x.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 { | |||
42 | 42 | ||
43 | static int tda826x_release(struct dvb_frontend *fe) | 43 | static int tda826x_release(struct dvb_frontend *fe) |
44 | { | 44 | { |
45 | if (fe->tuner_priv) | 45 | kfree(fe->tuner_priv); |
46 | kfree(fe->tuner_priv); | ||
47 | fe->tuner_priv = NULL; | 46 | fe->tuner_priv = NULL; |
48 | return 0; | 47 | return 0; |
49 | } | 48 | } |