]> err.no Git - linux-2.6/commitdiff
V4L/DVB (6624): CXUSB: return control message transfer result to caller
authorChris Pascoe <c.pascoe@itee.uq.edu.au>
Mon, 19 Nov 2007 05:42:44 +0000 (02:42 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:02:17 +0000 (19:02 -0200)
Callers to cxusb_ctrl_msg currently do not receive any indication that their
transfer failed.  Return the true return code from dvb_usb_generic_{rw,write}.

Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-usb/cxusb.c

index 5b6431ea38c12163e774f9d6b0186b0d2e3acda3..b4a3f7baf1b79bdde2c3c1bea6fe25b71e375b09 100644 (file)
@@ -49,11 +49,9 @@ static int cxusb_ctrl_msg(struct dvb_usb_device *d,
        sndbuf[0] = cmd;
        memcpy(&sndbuf[1], wbuf, wlen);
        if (wo)
-               dvb_usb_generic_write(d, sndbuf, 1+wlen);
+               return dvb_usb_generic_write(d, sndbuf, 1+wlen);
        else
-               dvb_usb_generic_rw(d, sndbuf, 1+wlen, rbuf, rlen, 0);
-
-       return 0;
+               return dvb_usb_generic_rw(d, sndbuf, 1+wlen, rbuf, rlen, 0);
 }
 
 /* GPIO */