Commit f31b6d76 authored by Alexander Viro's avatar Alexander Viro Committed by Stephen Hemminger

[wan hdlc_x25] eliminated hdlc_to_dev() and hdlc_to_name() uses.

parent aa7815ef
......@@ -189,7 +189,7 @@ void hdlc_close(struct net_device *dev)
#endif
#ifndef CONFIG_HDLC_X25
#define hdlc_x25_ioctl(hdlc, ifr) -ENOSYS
#define hdlc_x25_ioctl(dev, ifr) -ENOSYS
#endif
......@@ -221,7 +221,7 @@ int hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
case IF_PROTO_PPP: return hdlc_ppp_ioctl(hdlc, ifr);
case IF_PROTO_CISCO: return hdlc_cisco_ioctl(dev, ifr);
case IF_PROTO_FR: return hdlc_fr_ioctl(dev, ifr);
case IF_PROTO_X25: return hdlc_x25_ioctl(hdlc, ifr);
case IF_PROTO_X25: return hdlc_x25_ioctl(dev, ifr);
default: return -EINVAL;
}
}
......
......@@ -94,7 +94,6 @@ static void x25_data_transmit(struct net_device *dev, struct sk_buff *skb)
static int x25_xmit(struct sk_buff *skb, struct net_device *dev)
{
hdlc_device *hdlc = dev_to_hdlc(dev);
int result;
......@@ -114,7 +113,7 @@ static int x25_xmit(struct sk_buff *skb, struct net_device *dev)
else
printk(KERN_ERR "%s: LAPB connect request "
"failed, error code = %i\n",
hdlc_to_name(hdlc), result);
dev->name, result);
}
break;
......@@ -126,7 +125,7 @@ static int x25_xmit(struct sk_buff *skb, struct net_device *dev)
else
printk(KERN_ERR "%s: LAPB disconnect request "
"failed, error code = %i\n",
hdlc_to_name(hdlc), result);
dev->name, result);
}
break;
......@@ -186,9 +185,9 @@ static int x25_rx(struct sk_buff *skb)
int hdlc_x25_ioctl(hdlc_device *hdlc, struct ifreq *ifr)
int hdlc_x25_ioctl(struct net_device *dev, struct ifreq *ifr)
{
struct net_device *dev = hdlc_to_dev(hdlc);
hdlc_device *hdlc = dev_to_hdlc(dev);
int result;
switch (ifr->ifr_settings.type) {
......
......@@ -176,7 +176,7 @@ int hdlc_raw_eth_ioctl(hdlc_device *hdlc, struct ifreq *ifr);
int hdlc_cisco_ioctl(struct net_device *dev, struct ifreq *ifr);
int hdlc_ppp_ioctl(hdlc_device *hdlc, struct ifreq *ifr);
int hdlc_fr_ioctl(struct net_device *dev, struct ifreq *ifr);
int hdlc_x25_ioctl(hdlc_device *hdlc, struct ifreq *ifr);
int hdlc_x25_ioctl(struct net_device *dev, struct ifreq *ifr);
/* Exported from hdlc.o */
......
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