[PATCH] can: ucan: remove redundant pointer 'udev'
From: Colin King
Date: Thu Aug 30 2018 - 06:27:34 EST
From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Pointer 'udev' is being assigned but is never used hence it is
redundant and can be removed.
Cleans up clang warning:
variable 'udev' set but not used [-Wunused-but-set-variable]
Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
---
drivers/net/can/usb/ucan.c | 3 ---
1 file changed, 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 @@ static int ucan_probe(struct usb_interface *intf,
/* 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) {
--
2.17.1