diff options
author | Johan Hovold <johan@kernel.org> | 2020-07-08 15:50:00 +0300 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2020-07-09 10:20:17 +0300 |
commit | eb0c68ea4246252ba56951c6cf5e5d544a342e9e (patch) | |
tree | d837e62125dbad71e2f393ff95ad8009eeb66d1c /drivers/usb/serial/sierra.c | |
parent | 7aab96d6e3c54128f9e335fa8b11a0bd8815e118 (diff) | |
download | linux-eb0c68ea4246252ba56951c6cf5e5d544a342e9e.tar.xz |
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/sierra.c')
-rw-r--r-- | drivers/usb/serial/sierra.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index e8b130157b57..a862aa788a19 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c @@ -570,8 +570,7 @@ static void sierra_instat_callback(struct urb *urb) urb, port, portdata); if (status == 0) { - struct usb_ctrlrequest *req_pkt = - (struct usb_ctrlrequest *)urb->transfer_buffer; + struct usb_ctrlrequest *req_pkt = urb->transfer_buffer; if (!req_pkt) { dev_dbg(&port->dev, "%s: NULL req_pkt\n", |