aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-06-21 01:57:34 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-04 06:56:38 -0400
commit18cfe03d320b3b36e60145c5896afd5d911f63b2 (patch)
treedeac7e5c6f16f84cb4ac4b3f95676e3c641ca3df /drivers/media/dvb/dvb-usb
parent12042b0593104ba0c0c8030b89c837e9262dc906 (diff)
[media] dvb_usb_v2: fix power_ctrl() callback error handling
Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb')
-rw-r--r--drivers/media/dvb/dvb-usb/dvb_usb_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb_usb_core.c b/drivers/media/dvb/dvb-usb/dvb_usb_core.c
index 81ee3fc09a48..93ce02a91189 100644
--- a/drivers/media/dvb/dvb-usb/dvb_usb_core.c
+++ b/drivers/media/dvb/dvb-usb/dvb_usb_core.c
@@ -455,7 +455,8 @@ int dvb_usbv2_device_power_ctrl(struct dvb_usb_device *d, int onoff)
455 pr_debug("%s: power control=%d\n", __func__, onoff); 455 pr_debug("%s: power control=%d\n", __func__, onoff);
456 if (d->props->power_ctrl) { 456 if (d->props->power_ctrl) {
457 ret = d->props->power_ctrl(d, onoff); 457 ret = d->props->power_ctrl(d, onoff);
458 goto err; 458 if (ret < 0)
459 goto err;
459 } 460 }
460 } 461 }
461 462