summaryrefslogtreecommitdiff
path: root/drivers/net/can/usb
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-08-29 04:46:54 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2018-11-09 19:20:07 +0300
commit207681fc5f3d5d398f106d1ae0080fc2373f707a (patch)
treedc2da00f881776e31976e48d34953030c8b5659b /drivers/net/can/usb
parente13fb9b37cc00616b90df2d620f30345b5ada6ff (diff)
downloadlinux-207681fc5f3d5d398f106d1ae0080fc2373f707a.tar.xz
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: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Martin Elshuber <martin.elshuber@theobroma-systems.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/usb')
-rw-r--r--drivers/net/can/usb/ucan.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/can/usb/ucan.c b/drivers/net/can/usb/ucan.c
index 0678a38b1af4..c9fd83e8d947 100644
--- a/drivers/net/can/usb/ucan.c
+++ b/drivers/net/can/usb/ucan.c
@@ -1575,11 +1575,8 @@ err_firmware_needs_update:
/* disconnect the device */
static void ucan_disconnect(struct usb_interface *intf)
{
- struct usb_device *udev;
struct ucan_priv *up = usb_get_intfdata(intf);
- udev = interface_to_usbdev(intf);
-
usb_set_intfdata(intf, NULL);
if (up) {