Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57bcbde9 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[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: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent b6554ea5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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",