summaryrefslogtreecommitdiffstats
path: root/net/econet
diff options
context:
space:
mode:
authorMark Smith <lk-netdev@lk-netdev.nosense.org>2009-07-06 11:05:58 +0000
committerDavid S. Miller <davem@davemloft.net>2009-07-06 18:07:59 -0700
commit482d804cb4b520b6e3134c959c968712ebcdea02 (patch)
treee50c2b73031caa80722f64667c2d539dc38fb598 /net/econet
parent5c91face51d29f553a444d16db4ac2c6162a3cd0 (diff)
downloadop-kernel-dev-482d804cb4b520b6e3134c959c968712ebcdea02.zip
op-kernel-dev-482d804cb4b520b6e3134c959c968712ebcdea02.tar.gz
econet: use NET_RX_SUCCESS instead of magic number 0 for econet_rcv successful return
Signed-off-by: Mark Smith <markzzzsmith@yahoo.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/econet')
-rw-r--r--net/econet/af_econet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/econet/af_econet.c b/net/econet/af_econet.c
index 2e1f836..e114da7 100644
--- a/net/econet/af_econet.c
+++ b/net/econet/af_econet.c
@@ -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);
OpenPOWER on IntegriCloud