Commit 207681fc authored by YueHaibing's avatar YueHaibing Committed by Marc Kleine-Budde

can: ucan: remove set but not used variable 'udev'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/can/usb/ucan.c: In function 'ucan_disconnect':
drivers/net/can/usb/ucan.c:1578:21: warning:
 variable 'udev' set but not used [-Wunused-but-set-variable]
  struct usb_device *udev;
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarMartin Elshuber <martin.elshuber@theobroma-systems.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent e13fb9b3
...@@ -1575,11 +1575,8 @@ static int ucan_probe(struct usb_interface *intf, ...@@ -1575,11 +1575,8 @@ static int ucan_probe(struct usb_interface *intf,
/* disconnect the device */ /* disconnect the device */
static void ucan_disconnect(struct usb_interface *intf) static void ucan_disconnect(struct usb_interface *intf)
{ {
struct usb_device *udev;
struct ucan_priv *up = usb_get_intfdata(intf); struct ucan_priv *up = usb_get_intfdata(intf);
udev = interface_to_usbdev(intf);
usb_set_intfdata(intf, NULL); usb_set_intfdata(intf, NULL);
if (up) { if (up) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment