diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-02-27 07:51:09 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-03-01 11:49:52 -0300 |
commit | 57bcbde9a1c3e23d0c2e2b65246de7cf8925e5fb (patch) | |
tree | bb935104ef8611cb2189116814ca15e431eaa624 /drivers/media/dvb-frontends/dib0090.c | |
parent | b6554ea5511ac748051144d6789d49ea9a61ddfd (diff) | |
download | linux-57bcbde9a1c3e23d0c2e2b65246de7cf8925e5fb.tar.gz linux-57bcbde9a1c3e23d0c2e2b65246de7cf8925e5fb.tar.bz2 linux-57bcbde9a1c3e23d0c2e2b65246de7cf8925e5fb.zip |
[media] dib0090: Do the right check for state->rf_ramp
Smatch with -pkernel --no-data keeps complaining about rf_ramp:
drivers/media/dvb-frontends/dib0090.c:1119 dib0090_pwm_gain_reset() error: we previously assumed 'state->rf_ramp' could be null (see line 1086)
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/dib0090.c')
-rw-r--r-- | drivers/media/dvb-frontends/dib0090.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/dib0090.c b/drivers/media/dvb-frontends/dib0090.c index 7ee784f1b771..dc2d41e144fd 100644 --- a/drivers/media/dvb-frontends/dib0090.c +++ b/drivers/media/dvb-frontends/dib0090.c @@ -1115,7 +1115,7 @@ void dib0090_pwm_gain_reset(struct dvb_frontend *fe) dib0090_set_bbramp_pwm(state, bb_ramp); /* activate the ramp generator using PWM control */ - if (rf_ramp) + if (state->rf_ramp) dprintk("ramp RF gain = %d BAND = %s version = %d", state->rf_ramp[0], (state->current_band == BAND_CBAND) ? "CBAND" : "NOT CBAND", |