Skip to content

Commit

Permalink
V4L/DVB (6624): CXUSB: return control message transfer result to caller
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Pascoe authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 166fb6b commit b17f109
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/media/dvb/dvb-usb/cxusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b17f109

Please sign in to comment.