]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ibm_newemac: emac_tx_csum typo fix
authorValentine Barshak <vbarshak@ru.mvista.com>
Thu, 27 Mar 2008 14:43:57 +0000 (17:43 +0300)
committerJeff Garzik <jeff@garzik.org>
Sat, 29 Mar 2008 01:52:39 +0000 (21:52 -0400)
Move the "&& skb->ip_summed == CHECKSUM_PARTIAL" part out of
emac_has_feature parameters.

Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/ibm_newemac/core.c

index 0789802d59ed3314dd304feb8bfa6ba637790b9b..378a239634955163fdf6e991725179746ea651a1 100644 (file)
@@ -1242,8 +1242,8 @@ static int emac_close(struct net_device *ndev)
 static inline u16 emac_tx_csum(struct emac_instance *dev,
                               struct sk_buff *skb)
 {
-       if (emac_has_feature(dev, EMAC_FTR_HAS_TAH &&
-                            skb->ip_summed == CHECKSUM_PARTIAL)) {
+       if (emac_has_feature(dev, EMAC_FTR_HAS_TAH) &&
+               (skb->ip_summed == CHECKSUM_PARTIAL)) {
                ++dev->stats.tx_packets_csum;
                return EMAC_TX_CTRL_TAH_CSUM;
        }