diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2009-01-09 08:01:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 17:02:18 -0500 |
commit | 60961ce4d09db7c1ba49da3375123a18845ec864 (patch) | |
tree | f1b44c8b722851981b69cb5abdbb37710c64a03a /net/appletalk | |
parent | 3170c6568776a58e1eeec8ff949a65f5cf5d7ceb (diff) |
appletalk: remove unneeded stubs
With net_device_ops if set_mac_address is null, then error
is -EOPNOTSUPPORTED.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/appletalk')
-rw-r--r-- | net/appletalk/dev.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/net/appletalk/dev.c b/net/appletalk/dev.c index d856a62ab50f..72277d70c980 100644 --- a/net/appletalk/dev.c +++ b/net/appletalk/dev.c | |||
@@ -9,22 +9,20 @@ | |||
9 | #include <linux/if_arp.h> | 9 | #include <linux/if_arp.h> |
10 | #include <linux/if_ltalk.h> | 10 | #include <linux/if_ltalk.h> |
11 | 11 | ||
12 | #ifdef CONFIG_COMPAT_NET_DEV_OPS | ||
12 | static int ltalk_change_mtu(struct net_device *dev, int mtu) | 13 | static int ltalk_change_mtu(struct net_device *dev, int mtu) |
13 | { | 14 | { |
14 | return -EINVAL; | 15 | return -EINVAL; |
15 | } | 16 | } |
16 | 17 | #endif | |
17 | static int ltalk_mac_addr(struct net_device *dev, void *addr) | ||
18 | { | ||
19 | return -EINVAL; | ||
20 | } | ||
21 | 18 | ||
22 | static void ltalk_setup(struct net_device *dev) | 19 | static void ltalk_setup(struct net_device *dev) |
23 | { | 20 | { |
24 | /* Fill in the fields of the device structure with localtalk-generic values. */ | 21 | /* Fill in the fields of the device structure with localtalk-generic values. */ |
25 | 22 | ||
23 | #ifdef CONFIG_COMPAT_NET_DEV_OPS | ||
26 | dev->change_mtu = ltalk_change_mtu; | 24 | dev->change_mtu = ltalk_change_mtu; |
27 | dev->set_mac_address = ltalk_mac_addr; | 25 | #endif |
28 | 26 | ||
29 | dev->type = ARPHRD_LOCALTLK; | 27 | dev->type = ARPHRD_LOCALTLK; |
30 | dev->hard_header_len = LTALK_HLEN; | 28 | dev->hard_header_len = LTALK_HLEN; |