diff options
-rw-r--r-- | drivers/net/wan/hdlc.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/wan/hdlc.c b/drivers/net/wan/hdlc.c index d83cd7884e05..dbc179887f8b 100644 --- a/drivers/net/wan/hdlc.c +++ b/drivers/net/wan/hdlc.c | |||
@@ -52,15 +52,6 @@ static int hdlc_change_mtu(struct net_device *dev, int new_mtu) | |||
52 | return 0; | 52 | return 0; |
53 | } | 53 | } |
54 | 54 | ||
55 | |||
56 | |||
57 | static struct net_device_stats *hdlc_get_stats(struct net_device *dev) | ||
58 | { | ||
59 | return &dev->stats; | ||
60 | } | ||
61 | |||
62 | |||
63 | |||
64 | static int hdlc_rcv(struct sk_buff *skb, struct net_device *dev, | 55 | static int hdlc_rcv(struct sk_buff *skb, struct net_device *dev, |
65 | struct packet_type *p, struct net_device *orig_dev) | 56 | struct packet_type *p, struct net_device *orig_dev) |
66 | { | 57 | { |
@@ -102,7 +93,7 @@ static int hdlc_device_event(struct notifier_block *this, unsigned long event, | |||
102 | hdlc_device *hdlc; | 93 | hdlc_device *hdlc; |
103 | unsigned long flags; | 94 | unsigned long flags; |
104 | int on; | 95 | int on; |
105 | 96 | ||
106 | if (dev_net(dev) != &init_net) | 97 | if (dev_net(dev) != &init_net) |
107 | return NOTIFY_DONE; | 98 | return NOTIFY_DONE; |
108 | 99 | ||
@@ -233,7 +224,6 @@ static void hdlc_setup_dev(struct net_device *dev) | |||
233 | /* Re-init all variables changed by HDLC protocol drivers, | 224 | /* Re-init all variables changed by HDLC protocol drivers, |
234 | * including ether_setup() called from hdlc_raw_eth.c. | 225 | * including ether_setup() called from hdlc_raw_eth.c. |
235 | */ | 226 | */ |
236 | dev->get_stats = hdlc_get_stats; | ||
237 | dev->flags = IFF_POINTOPOINT | IFF_NOARP; | 227 | dev->flags = IFF_POINTOPOINT | IFF_NOARP; |
238 | dev->priv_flags = IFF_WAN_HDLC; | 228 | dev->priv_flags = IFF_WAN_HDLC; |
239 | dev->mtu = HDLC_MAX_MTU; | 229 | dev->mtu = HDLC_MAX_MTU; |