diff options
-rw-r--r-- | drivers/media/dvb/dvb-usb/m920x.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/media/dvb/dvb-usb/m920x.c b/drivers/media/dvb/dvb-usb/m920x.c index 485ea5ca5aeb..fd6583bed335 100644 --- a/drivers/media/dvb/dvb-usb/m920x.c +++ b/drivers/media/dvb/dvb-usb/m920x.c | |||
@@ -47,11 +47,15 @@ static inline int m9206_read(struct usb_device *udev, u8 request, u16 value,\ | |||
47 | ret = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0), | 47 | ret = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0), |
48 | request, USB_TYPE_VENDOR | USB_DIR_IN, | 48 | request, USB_TYPE_VENDOR | USB_DIR_IN, |
49 | value, index, data, size, 2000); | 49 | value, index, data, size, 2000); |
50 | if (ret < 0) | 50 | if (ret < 0) { |
51 | printk(KERN_INFO "m920x_read = error: %d\n", ret); | ||
51 | return ret; | 52 | return ret; |
53 | } | ||
52 | 54 | ||
53 | if (ret != size) | 55 | if (ret != size) { |
56 | deb_rc("m920x_read = no data\n"); | ||
54 | return -EIO; | 57 | return -EIO; |
58 | } | ||
55 | 59 | ||
56 | return 0; | 60 | return 0; |
57 | } | 61 | } |
@@ -64,6 +68,7 @@ static inline int m9206_write(struct usb_device *udev, u8 request, | |||
64 | ret = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), | 68 | ret = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), |
65 | request, USB_TYPE_VENDOR | USB_DIR_OUT, | 69 | request, USB_TYPE_VENDOR | USB_DIR_OUT, |
66 | value, index, NULL, 0, 2000); | 70 | value, index, NULL, 0, 2000); |
71 | |||
67 | return ret; | 72 | return ret; |
68 | } | 73 | } |
69 | 74 | ||
@@ -323,6 +328,7 @@ static int m9206_firmware_download(struct usb_device *udev, | |||
323 | i += size; | 328 | i += size; |
324 | } | 329 | } |
325 | if (i != fw->size) { | 330 | if (i != fw->size) { |
331 | deb_rc("bad firmware file!\n"); | ||
326 | ret = -EINVAL; | 332 | ret = -EINVAL; |
327 | goto done; | 333 | goto done; |
328 | } | 334 | } |