forked from luck/tmp_suning_uos_patched
V4L/DVB (6624): CXUSB: return control message transfer result to caller
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>
This commit is contained in:
parent
166fb6b472
commit
b17f109df1
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user