[media] dib0090: Do the right check for state->rf_ramp
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 27 Feb 2016 10:51:09 +0000 (07:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 1 Mar 2016 14:49:52 +0000 (11:49 -0300)
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>
drivers/media/dvb-frontends/dib0090.c

index 7ee784f1b7715b38d1cb8889c9f17ed56e08240f..dc2d41e144fdf0deb2dad49876d40ee500b4389c 100644 (file)
@@ -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",
This page took 0.027768 seconds and 5 git commands to generate.