Skip to content

Commit

Permalink
econet: use NET_RX_SUCCESS instead of magic number 0 for econet_rcv s…
Browse files Browse the repository at this point in the history
…uccessful return

Signed-off-by: Mark Smith <markzzzsmith@yahoo.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Mark Smith authored and David S. Miller committed Jul 7, 2009
1 parent 5c91fac commit 482d804
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/econet/af_econet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 482d804

Please sign in to comment.