projects
/
elmcan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a5a0e6
)
Use can_change_mtu() instead of hand-made function
author
norly
<ny-git@enpas.org>
Mon, 25 Feb 2019 14:27:45 +0000
(15:27 +0100)
committer
norly
<ny-git@enpas.org>
Mon, 25 Feb 2019 14:27:45 +0000
(15:27 +0100)
module/elmcan.c
patch
|
blob
|
history
diff --git
a/module/elmcan.c
b/module/elmcan.c
index b85c1c21b73d9f0acfdaf26eceeef393bd3849ab..516c22a2f24a3ecac9f26c0ab415939372545a46 100644
(file)
--- 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,
};