diff options
author | Chris Pascoe <c.pascoe@itee.uq.edu.au> | 2007-11-19 15:42:44 +1000 |
---|---|---|
committer | Chris Pascoe <c.pascoe@itee.uq.edu.au> | 2007-11-19 15:42:44 +1000 |
commit | bf61253a0eb92ce43d2cc451cd932909307c7231 (patch) | |
tree | 208056bd9b8c090df52e79a364120bcbf900bba0 /linux/drivers | |
parent | 80a0676452e394005277e4411c821dc6dfec2f33 (diff) | |
download | mediapointer-dvb-s2-bf61253a0eb92ce43d2cc451cd932909307c7231.tar.gz mediapointer-dvb-s2-bf61253a0eb92ce43d2cc451cd932909307c7231.tar.bz2 |
CXUSB: return control message transfer result to caller
From: Chris Pascoe <c.pascoe@itee.uq.edu.au>
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>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/cxusb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/cxusb.c b/linux/drivers/media/dvb/dvb-usb/cxusb.c index fb2cd9c75..5f7992c40 100644 --- a/linux/drivers/media/dvb/dvb-usb/cxusb.c +++ b/linux/drivers/media/dvb/dvb-usb/cxusb.c @@ -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 */ |