Skip to content

Commit 57bcbde

Browse files
committed
[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 <[email protected]>
1 parent b6554ea commit 57bcbde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/dvb-frontends/dib0090.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ void dib0090_pwm_gain_reset(struct dvb_frontend *fe)
11151115
dib0090_set_bbramp_pwm(state, bb_ramp);
11161116

11171117
/* activate the ramp generator using PWM control */
1118-
if (rf_ramp)
1118+
if (state->rf_ramp)
11191119
dprintk("ramp RF gain = %d BAND = %s version = %d",
11201120
state->rf_ramp[0],
11211121
(state->current_band == BAND_CBAND) ? "CBAND" : "NOT CBAND",

0 commit comments

Comments
 (0)