Skip to content

Commit

Permalink
can: use correct NET_RX_ return values
Browse files Browse the repository at this point in the history
Dropped skb's should be documented by an appropriate return value.
Use the correct NET_RX_DROP and NET_RX_SUCCESS values for that reason.

Signed-off-by: Oliver Hartkopp <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Oliver Hartkopp authored and davem330 committed Aug 31, 2009
1 parent 5de3fca commit 6ca8b99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/can/af_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,11 +686,11 @@ static int can_rcv(struct sk_buff *skb, struct net_device *dev,
can_stats.matches_delta++;
}

return 0;
return NET_RX_SUCCESS;

drop:
kfree_skb(skb);
return 0;
return NET_RX_DROP;
}

/*
Expand Down

0 comments on commit 6ca8b99

Please sign in to comment.