summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-10-14 17:11:53 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2007-10-14 17:11:53 -0400
commit33da28966967485b485745d31c1ce015cdcd484e (patch)
tree1b9a76e106c2e0061828ff277a386104d3260b92 /linux/drivers/media/video/tuner-core.c
parent30237df1702f85366f07cef0b1041255e296fd28 (diff)
downloadmediapointer-dvb-s2-33da28966967485b485745d31c1ce015cdcd484e.tar.gz
mediapointer-dvb-s2-33da28966967485b485745d31c1ce015cdcd484e.tar.bz2
tuner-core.c: fe_has_signal() can return uninitialized value
From: Michael Krufky <mkrufky@linuxtv.org> Initialize strength to zero. Thanks to Adrian Bunk, who spotted this with the Coverity checker. Cc: Adrian Bunk <bunk@kernel.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/tuner-core.c')
-rw-r--r--linux/drivers/media/video/tuner-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index 8ce6f46a2..b3d765c32 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -138,7 +138,7 @@ static void fe_standby(struct tuner *t)
static int fe_has_signal(struct tuner *t)
{
struct dvb_tuner_ops *fe_tuner_ops = &t->fe.ops.tuner_ops;
- u16 strength;
+ u16 strength = 0;
if (fe_tuner_ops->get_rf_strength)
fe_tuner_ops->get_rf_strength(&t->fe, &strength);