fm10k: TRIVIAL cleanup order at top of fm10k_xmit_frame
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 16 Oct 2015 17:57:11 +0000 (10:57 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 6 Dec 2015 07:55:24 +0000 (23:55 -0800)
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_main.c

index d422cd18710131eca660c27a09e8c5c1e31db9ac..1c17b6284daaa1e4d34b908ed7a7f4a7bbff3988 100644 (file)
@@ -1094,11 +1094,11 @@ dma_error:
 netdev_tx_t fm10k_xmit_frame_ring(struct sk_buff *skb,
                                  struct fm10k_ring *tx_ring)
 {
+       u16 count = TXD_USE_COUNT(skb_headlen(skb));
        struct fm10k_tx_buffer *first;
-       int tso;
-       u32 tx_flags = 0;
        unsigned short f;
-       u16 count = TXD_USE_COUNT(skb_headlen(skb));
+       u32 tx_flags = 0;
+       int tso;
 
        /* need: 1 descriptor per page * PAGE_SIZE/FM10K_MAX_DATA_PER_TXD,
         *       + 1 desc for skb_headlen/FM10K_MAX_DATA_PER_TXD,