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/option.c | |
parent | 7aab96d6e3c54128f9e335fa8b11a0bd8815e118 (diff) | |
download | linux-eb0c68ea4246252ba56951c6cf5e5d544a342e9e.tar.bz2 |
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/option.c')
-rw-r--r-- | drivers/usb/serial/option.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 254a8bbeea67..8e74903352e7 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -2151,8 +2151,7 @@ static void option_instat_callback(struct urb *urb) dev_dbg(dev, "%s: urb %p port %p has data %p\n", __func__, 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(dev, "%s: NULL req_pkt\n", __func__); |