Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Gustavo A. R. Silva and committed by
Mauro Carvalho Chehab
b4b138a9 213bc75a

+1 -2
+1 -2
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
··· 628 628 } 629 629 630 630 ret = dvb_usbv2_device_power_ctrl(d, 0); 631 - if (ret < 0) 632 - goto err; 631 + 633 632 err: 634 633 if (!adap->suspend_resume_active) { 635 634 adap->active_fe = -1;