Commit 482d804c authored by Mark Smith's avatar Mark Smith Committed by David S. Miller

econet: use NET_RX_SUCCESS instead of magic number 0 for econet_rcv successful return

Signed-off-by: default avatarMark Smith <markzzzsmith@yahoo.com.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5c91face
...@@ -1072,7 +1072,7 @@ static int econet_rcv(struct sk_buff *skb, struct net_device *dev, struct packet ...@@ -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->protocol = htons(ETH_P_IP);
skb_pull(skb, sizeof(struct ec_framehdr)); skb_pull(skb, sizeof(struct ec_framehdr));
netif_rx(skb); netif_rx(skb);
return 0; return NET_RX_SUCCESS;
} }
sk = ec_listening_socket(hdr->port, hdr->src_stn, hdr->src_net); 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 ...@@ -1083,7 +1083,7 @@ static int econet_rcv(struct sk_buff *skb, struct net_device *dev, struct packet
hdr->port)) hdr->port))
goto drop; goto drop;
return 0; return NET_RX_SUCCESS;
drop: drop:
kfree_skb(skb); kfree_skb(skb);
......
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