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

Commit b4b138a9 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Mauro Carvalho Chehab
Browse files

media: usb: dvb-usb-v2: dvb_usb_core: remove redundant code in dvb_usb_fe_sleep



Check on return value and goto instruction is redundant as the code
that follows is the goto label err.

Addresses-Coverity-ID: 1268783

Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 213bc75a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -628,8 +628,7 @@ static int dvb_usb_fe_sleep(struct dvb_frontend *fe)
	}

	ret = dvb_usbv2_device_power_ctrl(d, 0);
	if (ret < 0)
		goto err;

err:
	if (!adap->suspend_resume_active) {
		adap->active_fe = -1;