projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f793458
)
can: ucan: remove unused ucan_priv::intf
author
Vincent Mailhol
<mailhol.vincent@wanadoo.fr>
Thu, 8 Dec 2022 08:11:41 +0000
(17:11 +0900)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Mon, 12 Dec 2022 10:41:25 +0000
(11:41 +0100)
Field intf of struct ucan_priv is set but never used. Remove it.
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link:
https://lore.kernel.org/all/20221208081142.16936-2-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/ucan.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/usb/ucan.c
b/drivers/net/can/usb/ucan.c
index
159e25f
..
a0f7bce
100644
(file)
--- a/
drivers/net/can/usb/ucan.c
+++ b/
drivers/net/can/usb/ucan.c
@@
-277,7
+277,6
@@
struct ucan_priv {
/* linux USB device structures */
struct usb_device *udev;
- struct usb_interface *intf;
struct net_device *netdev;
/* lock for can->echo_skb (used around
@@
-1501,7
+1500,6
@@
static int ucan_probe(struct usb_interface *intf,
/* initialize data */
up->udev = udev;
- up->intf = intf;
up->netdev = netdev;
up->intf_index = iface_desc->desc.bInterfaceNumber;
up->in_ep_addr = in_ep_addr;