diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2016-07-11 06:23:11 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-12 19:32:39 +0300 |
commit | c93350a6441aa0a5e4765d625a15de10cb9d03a7 (patch) | |
tree | 4e2b3f13d6c00c493fc51db29b3117fdab92fa75 /drivers/media/dvb-frontends/af9033.c | |
parent | e34f2a96a44f3c9f2458aa53574e522306e76fe7 (diff) | |
download | linux-c93350a6441aa0a5e4765d625a15de10cb9d03a7.tar.xz |
[media] af9033: fix compiler warnings
Fix two warnings:
af9033.c: In function 'af9033_read_status':
af9033.c:883:25: warning: 'snr_lut' may be used uninitialized in this function [-Wmaybe-uninitialized]
const struct val_snr *snr_lut;
^
af9033.c:952:25: warning: 'tmp' may be used uninitialized in this function [-Wmaybe-uninitialized]
c->cnr.stat[0].svalue = tmp;
^
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/af9033.c')
-rw-r--r-- | drivers/media/dvb-frontends/af9033.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/af9033.c b/drivers/media/dvb-frontends/af9033.c index 6c2f9b8f7395..9a8157a5f49d 100644 --- a/drivers/media/dvb-frontends/af9033.c +++ b/drivers/media/dvb-frontends/af9033.c @@ -816,7 +816,7 @@ static int af9033_read_status(struct dvb_frontend *fe, enum fe_status *status) { struct af9033_dev *dev = fe->demodulator_priv; struct dtv_frontend_properties *c = &fe->dtv_property_cache; - int ret, i, tmp; + int ret, i, tmp = 0; u8 u8tmp, buf[7]; dev_dbg(&dev->client->dev, "\n"); @@ -880,7 +880,7 @@ static int af9033_read_status(struct dvb_frontend *fe, enum fe_status *status) /* CNR */ if (dev->fe_status & FE_HAS_VITERBI) { u32 snr_val, snr_lut_size; - const struct val_snr *snr_lut; + const struct val_snr *snr_lut = NULL; /* read value */ ret = af9033_rd_regs(dev, 0x80002c, buf, 3); |