summaryrefslogtreecommitdiff
path: root/module/elmcan.c
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2019-02-25 15:27:45 +0100
committernorly <ny-git@enpas.org>2019-02-25 15:27:45 +0100
commit8fff8608a57e1261df0ea709c57db43c84fa8c55 (patch)
tree037d9dacc0b29f6f84efb09d3c11eb7d2db8f13c /module/elmcan.c
parent6a5a0e6bcaf955ba5ee4ade528cd679304cae708 (diff)
Use can_change_mtu() instead of hand-made function
Diffstat (limited to 'module/elmcan.c')
-rw-r--r--module/elmcan.c6
1 files changed, 1 insertions, 5 deletions
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,
};