aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-trace.c
diff options
context:
space:
mode:
authorHimadri Pandya <[email protected]>2021-10-01 08:57:19 +0200
committerJohan Hovold <[email protected]>2021-10-27 14:34:59 +0200
commit74f266455062c158f343bc3aa35ef84b3eb7adf1 (patch)
tree1e202f251fc85e869d1ce81fea875cdf012f0cfb /drivers/usb/cdns3/cdns3-trace.c
parentc8345c0500de4411762db5941058e34979879128 (diff)
USB: serial: ch314: use usb_control_msg_recv()
usb_control_msg_recv() is a new wrapper function for usb_control_msg() that has error checks for short reads. This function also accepts data buffer on stack. Hence use this function to simplify error handling for short reads. Short reads will now get reported as -EREMOTEIO with no indication of how short the transfer was. Signed-off-by: Himadri Pandya <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ johan: fix quirk-detection breakage, style changes ] Signed-off-by: Johan Hovold <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions