diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-10-14 17:11:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-22 10:01:39 -0400 |
commit | 1419683d85367df90079fb5535865ac0841ebbea (patch) | |
tree | bed33b9cb032af71df886aab5c8c185e8622d801 /drivers/media/video | |
parent | fcf94c89af8acccb14ce37b1c9e8dd6bd32a999d (diff) |
V4L/DVB (6326): tuner-core.c: fe_has_signal() can return uninitialized value
Initialize strength to zero.
Thanks to Adrian Bunk, who spotted this with the Coverity checker.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/tuner-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index 94843086cda9..6a777604f070 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c | |||
@@ -113,7 +113,7 @@ static void fe_standby(struct tuner *t) | |||
113 | static int fe_has_signal(struct tuner *t) | 113 | static int fe_has_signal(struct tuner *t) |
114 | { | 114 | { |
115 | struct dvb_tuner_ops *fe_tuner_ops = &t->fe.ops.tuner_ops; | 115 | struct dvb_tuner_ops *fe_tuner_ops = &t->fe.ops.tuner_ops; |
116 | u16 strength; | 116 | u16 strength = 0; |
117 | 117 | ||
118 | if (fe_tuner_ops->get_rf_strength) | 118 | if (fe_tuner_ops->get_rf_strength) |
119 | fe_tuner_ops->get_rf_strength(&t->fe, &strength); | 119 | fe_tuner_ops->get_rf_strength(&t->fe, &strength); |