diff options
author | Johan Hovold <johan@kernel.org> | 2020-07-08 14:50:00 +0200 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2020-07-09 09:20:17 +0200 |
commit | eb0c68ea4246252ba56951c6cf5e5d544a342e9e (patch) | |
tree | d837e62125dbad71e2f393ff95ad8009eeb66d1c /drivers/usb/serial/ftdi_sio.c | |
parent | 7aab96d6e3c54128f9e335fa8b11a0bd8815e118 (diff) | |
download | lwn-eb0c68ea4246252ba56951c6cf5e5d544a342e9e.tar.gz lwn-eb0c68ea4246252ba56951c6cf5e5d544a342e9e.zip |
USB: serial: drop redundant transfer-buffer casts
Drop redundant URB transfer-buffer casts.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index ade68405b015..871cdccf3a5f 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -2584,7 +2584,7 @@ static void ftdi_process_read_urb(struct urb *urb) { struct usb_serial_port *port = urb->context; struct ftdi_private *priv = usb_get_serial_port_data(port); - char *data = (char *)urb->transfer_buffer; + char *data = urb->transfer_buffer; int i; int len; int count = 0; |