diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 21:18:31 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:40:34 -0500 |
commit | 4d543096ee743faa52d69506eef73d3cb6208f18 (patch) | |
tree | 739ba6aaf148d76c237e1c39c93dc7ad1cb03554 /drivers/media/dvb | |
parent | ed716dcb862f969e118037ee8830ad28664b4a11 (diff) |
V4L/DVB (10116): af9013: Fix gcc false warnings
drivers/media/dvb/frontends/af9013.c: In function ‘af9013_set_coeff’:
drivers/media/dvb/frontends/af9013.c:231: warning: ‘ns_coeff2_8k’ may be used uninitialized in this function
drivers/media/dvb/frontends/af9013.c:230: warning: ‘ns_coeff2_2k’ may be used uninitialized in this function
drivers/media/dvb/frontends/af9013.c:229: warning: ‘ns_coeff1_8193nu’ may be used uninitialized in this function
drivers/media/dvb/frontends/af9013.c:228: warning: ‘ns_coeff1_8192nu’ may be used uninitialized in this function
drivers/media/dvb/frontends/af9013.c:227: warning: ‘ns_coeff1_8191nu’ may be used uninitialized in this function
drivers/media/dvb/frontends/af9013.c:226: warning: ‘ns_coeff1_2048nu’ may be used uninitialized in this function
drivers/media/dvb/frontends/af9013.c: In function ‘af9013_update_snr’:
drivers/media/dvb/frontends/af9013.c:1012: warning: ‘snr_table’ may be used uninitialized in this function
Cc: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/frontends/af9013.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/dvb/frontends/af9013.c b/drivers/media/dvb/frontends/af9013.c index 692b68a9e73b..b2b50fb4cfd3 100644 --- a/drivers/media/dvb/frontends/af9013.c +++ b/drivers/media/dvb/frontends/af9013.c | |||
@@ -223,12 +223,12 @@ static int af9013_set_coeff(struct af9013_state *state, fe_bandwidth_t bw) | |||
223 | int ret = 0; | 223 | int ret = 0; |
224 | u8 i = 0; | 224 | u8 i = 0; |
225 | u8 buf[24]; | 225 | u8 buf[24]; |
226 | u32 ns_coeff1_2048nu; | 226 | u32 uninitialized_var(ns_coeff1_2048nu); |
227 | u32 ns_coeff1_8191nu; | 227 | u32 uninitialized_var(ns_coeff1_8191nu); |
228 | u32 ns_coeff1_8192nu; | 228 | u32 uninitialized_var(ns_coeff1_8192nu); |
229 | u32 ns_coeff1_8193nu; | 229 | u32 uninitialized_var(ns_coeff1_8193nu); |
230 | u32 ns_coeff2_2k; | 230 | u32 uninitialized_var(ns_coeff2_2k); |
231 | u32 ns_coeff2_8k; | 231 | u32 uninitialized_var(ns_coeff2_8k); |
232 | 232 | ||
233 | deb_info("%s: adc_clock:%d bw:%d\n", __func__, | 233 | deb_info("%s: adc_clock:%d bw:%d\n", __func__, |
234 | state->config.adc_clock, bw); | 234 | state->config.adc_clock, bw); |
@@ -1009,7 +1009,7 @@ static int af9013_update_snr(struct dvb_frontend *fe) | |||
1009 | int ret; | 1009 | int ret; |
1010 | u8 buf[3], i, len; | 1010 | u8 buf[3], i, len; |
1011 | u32 quant = 0; | 1011 | u32 quant = 0; |
1012 | struct snr_table *snr_table; | 1012 | struct snr_table *uninitialized_var(snr_table); |
1013 | 1013 | ||
1014 | /* check if quantizer ready (for snr) */ | 1014 | /* check if quantizer ready (for snr) */ |
1015 | ret = af9013_read_reg_bits(state, 0xd2e1, 3, 1, &buf[0]); | 1015 | ret = af9013_read_reg_bits(state, 0xd2e1, 3, 1, &buf[0]); |