forked from Minki/linux
[PATCH] ep93xx_eth: fix unlikely(x) > y test
Fix unlikely(x) > y test in ep93xx_eth. Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
2d38caba5f
commit
79c356f44b
@ -334,7 +334,7 @@ static int ep93xx_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
struct ep93xx_priv *ep = netdev_priv(dev);
|
||||
int entry;
|
||||
|
||||
if (unlikely(skb->len) > MAX_PKT_SIZE) {
|
||||
if (unlikely(skb->len > MAX_PKT_SIZE)) {
|
||||
ep->stats.tx_dropped++;
|
||||
dev_kfree_skb(skb);
|
||||
return NETDEV_TX_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user