Generic HDLC - remove now unneeded hdlc_device_desc
Removes now unneeded struct hdlc_device_desc Signed-off-by: Krzysztof Halasa <khc@pm.waw.pl> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
committed by
Jeff Garzik
parent
983e23041b
commit
40d25142f2
@@ -250,7 +250,7 @@ static int cisco_rx(struct sk_buff *skb)
|
||||
return NET_RX_DROP;
|
||||
|
||||
rx_error:
|
||||
dev_to_desc(dev)->stats.rx_errors++; /* Mark error */
|
||||
dev_to_hdlc(dev)->stats.rx_errors++; /* Mark error */
|
||||
dev_kfree_skb_any(skb);
|
||||
return NET_RX_DROP;
|
||||
}
|
||||
@@ -314,6 +314,7 @@ static struct hdlc_proto proto = {
|
||||
.stop = cisco_stop,
|
||||
.type_trans = cisco_type_trans,
|
||||
.ioctl = cisco_ioctl,
|
||||
.netif_rx = cisco_rx,
|
||||
.module = THIS_MODULE,
|
||||
};
|
||||
|
||||
@@ -360,7 +361,7 @@ static int cisco_ioctl(struct net_device *dev, struct ifreq *ifr)
|
||||
if (result)
|
||||
return result;
|
||||
|
||||
result = attach_hdlc_protocol(dev, &proto, cisco_rx,
|
||||
result = attach_hdlc_protocol(dev, &proto,
|
||||
sizeof(struct cisco_state));
|
||||
if (result)
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user