From: norly Date: Mon, 25 Feb 2019 14:27:45 +0000 (+0100) Subject: Use can_change_mtu() instead of hand-made function X-Git-Url: https://git.enpas.org/?p=elmcan.git;a=commitdiff_plain;h=8fff8608a57e1261df0ea709c57db43c84fa8c55 Use can_change_mtu() instead of hand-made function --- diff --git a/module/elmcan.c b/module/elmcan.c index b85c1c2..516c22a 100644 --- a/module/elmcan.c +++ b/module/elmcan.c @@ -893,16 +893,12 @@ out: return NETDEV_TX_OK; } -static int elmcan_netdev_change_mtu(struct net_device *dev, int new_mtu) -{ - return -EINVAL; -} static const struct net_device_ops elmcan_netdev_ops = { .ndo_open = elmcan_netdev_open, .ndo_stop = elmcan_netdev_close, .ndo_start_xmit = elmcan_netdev_start_xmit, - .ndo_change_mtu = elmcan_netdev_change_mtu, + .ndo_change_mtu = can_change_mtu, };