Skip to content

Commit 1a6b249

Browse files
Jimmy Assarssonmarckleinebudde
authored andcommitted
can: kvaser_usb: Remove struct variables kvaser_usb_{ethtool,netdev}_ops
Remove no longer used struct variables, kvaser_usb_ethtool_ops and kvaser_usb_netdev_ops. Signed-off-by: Jimmy Assarsson <[email protected]> Reviewed-by: Vincent Mailhol <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 51b56a2 commit 1a6b249

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -753,13 +753,6 @@ static netdev_tx_t kvaser_usb_start_xmit(struct sk_buff *skb,
753753
return ret;
754754
}
755755

756-
static const struct net_device_ops kvaser_usb_netdev_ops = {
757-
.ndo_open = kvaser_usb_open,
758-
.ndo_stop = kvaser_usb_close,
759-
.ndo_start_xmit = kvaser_usb_start_xmit,
760-
.ndo_change_mtu = can_change_mtu,
761-
};
762-
763756
static const struct net_device_ops kvaser_usb_netdev_ops_hwts = {
764757
.ndo_open = kvaser_usb_open,
765758
.ndo_stop = kvaser_usb_close,
@@ -768,10 +761,6 @@ static const struct net_device_ops kvaser_usb_netdev_ops_hwts = {
768761
.ndo_change_mtu = can_change_mtu,
769762
};
770763

771-
static const struct ethtool_ops kvaser_usb_ethtool_ops = {
772-
.get_ts_info = ethtool_op_get_ts_info,
773-
};
774-
775764
static const struct ethtool_ops kvaser_usb_ethtool_ops_hwts = {
776765
.get_ts_info = can_ethtool_op_get_ts_info_hwts,
777766
};

0 commit comments

Comments
 (0)