summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/aircable.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2020-07-08 14:50:00 +0200
committerJohan Hovold <johan@kernel.org>2020-07-09 09:20:17 +0200
commiteb0c68ea4246252ba56951c6cf5e5d544a342e9e (patch)
treed837e62125dbad71e2f393ff95ad8009eeb66d1c /drivers/usb/serial/aircable.c
parentUSB: serial: drop extern keyword from function declarations (diff)
downloadlinux-eb0c68ea4246252ba56951c6cf5e5d544a342e9e.tar.xz
linux-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/aircable.c')
-rw-r--r--drivers/usb/serial/aircable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/aircable.c b/drivers/usb/serial/aircable.c
index 84d52953dd0a..a1df686c3066 100644
--- a/drivers/usb/serial/aircable.c
+++ b/drivers/usb/serial/aircable.c
@@ -117,7 +117,7 @@ static int aircable_process_packet(struct usb_serial_port *port,
static void aircable_process_read_urb(struct urb *urb)
{
struct usb_serial_port *port = urb->context;
- char *data = (char *)urb->transfer_buffer;
+ char *data = urb->transfer_buffer;
int has_headers;
int count;
int len;