summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/sierra.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2020-07-08 15:50:00 +0300
committerJohan Hovold <johan@kernel.org>2020-07-09 10:20:17 +0300
commiteb0c68ea4246252ba56951c6cf5e5d544a342e9e (patch)
treed837e62125dbad71e2f393ff95ad8009eeb66d1c /drivers/usb/serial/sierra.c
parent7aab96d6e3c54128f9e335fa8b11a0bd8815e118 (diff)
downloadlinux-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.c3
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",