Commit 60961ce4 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

appletalk: remove unneeded stubs

With net_device_ops if set_mac_address is null, then error
is -EOPNOTSUPPORTED.
Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3170c656
...@@ -9,22 +9,20 @@ ...@@ -9,22 +9,20 @@
#include <linux/if_arp.h> #include <linux/if_arp.h>
#include <linux/if_ltalk.h> #include <linux/if_ltalk.h>
#ifdef CONFIG_COMPAT_NET_DEV_OPS
static int ltalk_change_mtu(struct net_device *dev, int mtu) static int ltalk_change_mtu(struct net_device *dev, int mtu)
{ {
return -EINVAL; return -EINVAL;
} }
#endif
static int ltalk_mac_addr(struct net_device *dev, void *addr)
{
return -EINVAL;
}
static void ltalk_setup(struct net_device *dev) static void ltalk_setup(struct net_device *dev)
{ {
/* Fill in the fields of the device structure with localtalk-generic values. */ /* Fill in the fields of the device structure with localtalk-generic values. */
#ifdef CONFIG_COMPAT_NET_DEV_OPS
dev->change_mtu = ltalk_change_mtu; dev->change_mtu = ltalk_change_mtu;
dev->set_mac_address = ltalk_mac_addr; #endif
dev->type = ARPHRD_LOCALTLK; dev->type = ARPHRD_LOCALTLK;
dev->hard_header_len = LTALK_HLEN; dev->hard_header_len = LTALK_HLEN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment