]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
tg3: Move transmit comment to a better location
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 13 Feb 2012 10:20:12 +0000 (10:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Feb 2012 20:57:33 +0000 (15:57 -0500)
This patch moves a comment in the transmit path to a better location.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c

index b89c9322c0a41437e0850689567b7d253916aa11..d418f954c72d73b017ff85c30a4d6784ac655257 100644 (file)
@@ -6923,7 +6923,6 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
                          ((skb_shinfo(skb)->nr_frags == 0) ? TXD_FLAG_END : 0),
                            mss, vlan)) {
                would_hit_hwbug = 1;
-       /* Now loop through additional data fragments, and queue them. */
        } else if (skb_shinfo(skb)->nr_frags > 0) {
                u32 tmp_mss = mss;
 
@@ -6932,6 +6931,9 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
                    !tg3_flag(tp, HW_TSO_3))
                        tmp_mss = 0;
 
+               /* Now loop through additional data
+                * fragments, and queue them.
+                */
                last = skb_shinfo(skb)->nr_frags - 1;
                for (i = 0; i <= last; i++) {
                        skb_frag_t *frag = &skb_shinfo(skb)->frags[i];