Skip to contentSkip to conversation

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

PATCH New Gustavo A. R. Silva 1 participant 1 message Nov 6, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c +1 -2
index 096bb75..2bf3bd8 100644
@@ -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;
Signature · 1 line
2.7.4