summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-13 15:14:33 -0200
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-13 16:28:13 -0200
commite4a3bc1c2c1aebb09ef12f0eb52cf5e6a1d5b9d3 (patch)
tree293eac27a331040b1b33e8b44a68b8fd93e67d3b /drivers/media
parent5dc8526b90979c2cacdf32d1ea3b82de7744bd71 (diff)
[media] dib8000: Fix a few warnings when compiled for avr32
drivers/media/dvb-frontends/dib8000.c: In function 'dib8000_get_time_us': drivers/media/dvb-frontends/dib8000.c:3957: warning: 'interleaving' may be used uninitialized in this function drivers/media/dvb-frontends/dib8000.c:3956: warning: 'rate_denum' may be used uninitialized in this function Those are actually false positives, but it doesn't hurt cleaning them. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb-frontends/dib8000.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/dib8000.c b/drivers/media/dvb-frontends/dib8000.c
index dd4a99cff3e..1632d78a547 100644
--- a/drivers/media/dvb-frontends/dib8000.c
+++ b/drivers/media/dvb-frontends/dib8000.c
@@ -3953,8 +3953,8 @@ static u32 dib8000_get_time_us(struct dvb_frontend *fe, int layer)
int ini_layer, end_layer, i;
u64 time_us, tmp64;
u32 tmp, denom;
- int guard, rate_num, rate_denum, bits_per_symbol, nsegs;
- int interleaving, fft_div;
+ int guard, rate_num, rate_denum = 1, bits_per_symbol, nsegs;
+ int interleaving = 0, fft_div;
if (layer >= 0) {
ini_layer = layer;