aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-29 14:40:40 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-21 15:45:58 (GMT)
commit9b01f3d498a9f39de1824609c08edbd137b774b6 (patch)
tree25e54f3b7b367013fa5a8271540c359a9451877a
parent2d5161b7714ae75ac62cd58bf4c5c11ca6c2da59 (diff)
[media] az6007: improve the error messages for az6007 read/write calls
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/dvb-usb/az6007.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/media/dvb/dvb-usb/az6007.c b/drivers/media/dvb/dvb-usb/az6007.c
index c9743ee..c9b6f80 100644
--- a/drivers/media/dvb/dvb-usb/az6007.c
+++ b/drivers/media/dvb/dvb-usb/az6007.c
@@ -110,16 +110,15 @@ static struct mt2063_config az6007_mt2063_config = {
static int az6007_read(struct usb_device *udev, u8 req, u16 value,
u16 index, u8 *b, int blen)
{
- int ret = -1;
+ int ret;
ret = usb_control_msg(udev,
usb_rcvctrlpipe(udev, 0),
req,
USB_TYPE_VENDOR | USB_DIR_IN,
value, index, b, blen, 5000);
-
if (ret < 0) {
- warn("usb in operation failed. (%d)", ret);
+ warn("usb read operation failed. (%d)", ret);
return -EIO;
}
@@ -151,7 +150,7 @@ static int az6007_write(struct usb_device *udev, u8 req, u16 value,
USB_TYPE_VENDOR | USB_DIR_OUT,
value, index, b, blen, 5000);
if (ret != blen) {
- err("usb out operation failed. (%d)", ret);
+ err("usb write operation failed. (%d)", ret);
return -EIO;
}

Privacy Policy