[PATCH] ep93xx_eth: fix unlikely(x) > y test
authorLennert Buytenhek <buytenh@wantstofly.org>
Mon, 30 Oct 2006 18:52:54 +0000 (19:52 +0100)
committerJeff Garzik <jeff@garzik.org>
Wed, 1 Nov 2006 01:22:05 +0000 (20:22 -0500)
Fix unlikely(x) > y test in ep93xx_eth.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/arm/ep93xx_eth.c

index 2fc8b2a1a023cef7f7f35163f997beb6459eade8..90d77ec48fb62cb9ae738d21e5928004b99d5857 100644 (file)
@@ -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;