net: replace uses of __constant_{endian}
[deliverable/linux.git] / drivers / net / wan / hdlc_ppp.c
index 57fe714c1c7f63376e1694fc84d2f73788e50c2a..72a7cdab424531850f51462d6b16bf40c3faea50 100644 (file)
@@ -150,11 +150,11 @@ static __be16 ppp_type_trans(struct sk_buff *skb, struct net_device *dev)
                return htons(ETH_P_HDLC);
 
        switch (data->protocol) {
-       case __constant_htons(PID_IP):
+       case cpu_to_be16(PID_IP):
                skb_pull(skb, sizeof(struct hdlc_header));
                return htons(ETH_P_IP);
 
-       case __constant_htons(PID_IPV6):
+       case cpu_to_be16(PID_IPV6):
                skb_pull(skb, sizeof(struct hdlc_header));
                return htons(ETH_P_IPV6);
 
@@ -558,7 +558,6 @@ out:
        return NET_RX_DROP;
 }
 
-
 static void ppp_timer(unsigned long arg)
 {
        struct proto *proto = (struct proto *)arg;
@@ -679,7 +678,6 @@ static int ppp_ioctl(struct net_device *dev, struct ifreq *ifr)
                ppp->keepalive_interval = 10;
                ppp->keepalive_timeout = 60;
 
-               dev->hard_start_xmit = hdlc->xmit;
                dev->hard_header_len = sizeof(struct hdlc_header);
                dev->header_ops = &ppp_header_ops;
                dev->type = ARPHRD_PPP;
This page took 0.032313 seconds and 5 git commands to generate.