econet: use NET_RX_SUCCESS instead of magic number 0 for econet_rcv successful return
authorMark Smith <lk-netdev@lk-netdev.nosense.org>
Mon, 6 Jul 2009 11:05:58 +0000 (11:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jul 2009 01:07:59 +0000 (18:07 -0700)
Signed-off-by: Mark Smith <markzzzsmith@yahoo.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/econet/af_econet.c

index 2e1f836d424064ffe346321e053c136f86682545..e114da7ca9b88d4a862339e0d13cee055cd5a9ee 100644 (file)
@@ -1072,7 +1072,7 @@ static int econet_rcv(struct sk_buff *skb, struct net_device *dev, struct packet
                skb->protocol = htons(ETH_P_IP);
                skb_pull(skb, sizeof(struct ec_framehdr));
                netif_rx(skb);
-               return 0;
+               return NET_RX_SUCCESS;
        }
 
        sk = ec_listening_socket(hdr->port, hdr->src_stn, hdr->src_net);
@@ -1083,7 +1083,7 @@ static int econet_rcv(struct sk_buff *skb, struct net_device *dev, struct packet
                            hdr->port))
                goto drop;
 
-       return 0;
+       return NET_RX_SUCCESS;
 
 drop:
        kfree_skb(skb);