econet: use NET_RX_SUCCESS instead of magic number 0 for econet_rcv successful return
Subsystems (2)
PATCH 1/1 econet: use NET_RX_SUCCESS instead of magic number 0 for econet_rcv successful return
Signed-off-by Mark Smith <[email protected]>
net/econet/af_econet.c +2 -2
@@ -1084,7 +1084,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);
@@ -1095,7 +1095,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);
From: Mark Smith <[email protected]>
Date: Tue, 7 Jul 2009 06:35:58 +0930
Quoted 2 lines
Signed-off-by Mark Smith <[email protected]>
Applied.