diff options
author | Vincent Mailhol <mailhol.vincent@wanadoo.fr> | 2022-12-08 09:11:41 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2022-12-12 11:41:25 +0100 |
commit | f54b101ddeaea68fe7e52e842deb8b7a081bf156 (patch) | |
tree | a3b6a54dd0f02398c1c2ca10d08268855f3f071d | |
parent | net: af_can: remove useless parameter 'err' in 'can_rx_register()' (diff) | |
download | linux-f54b101ddeaea68fe7e52e842deb8b7a081bf156.tar.xz linux-f54b101ddeaea68fe7e52e842deb8b7a081bf156.zip |
can: ucan: remove unused ucan_priv::intf
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>
-rw-r--r-- | drivers/net/can/usb/ucan.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/can/usb/ucan.c b/drivers/net/can/usb/ucan.c index 159e25ffa337..a0f7bcec719c 100644 --- 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; |