]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
i40e/i40evf: remove useless initializer
authorMitch Williams <mitch.a.williams@intel.com>
Mon, 20 Jun 2016 16:10:35 +0000 (09:10 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:30:53 +0000 (19:30 -0500)
Orabug: 24568124

This initializer isn't needed because the variable is assigned right
away.

Change-ID: I6ce3edb3f4e0364db248a7a0bcc62ca95c01d941
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 88dc9e6fed5b6cda0049849abf76929df3178158)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.c

index 48d2d3b51dcdd49d6ac76dc817218d0040b6d58a..c634e2b9210eba9a01580d0282ba26f122eb13b3 100644 (file)
@@ -739,14 +739,12 @@ static bool i40e_clean_tx_irq(struct i40e_ring *tx_ring, int budget)
        tx_ring->q_vector->tx.total_packets += total_packets;
 
        if (tx_ring->flags & I40E_TXR_FLAGS_WB_ON_ITR) {
-               unsigned int j = 0;
-
                /* check to see if there are < 4 descriptors
                 * waiting to be written back, then kick the hardware to force
                 * them to be written back in case we stay in NAPI.
                 * In this mode on X722 we do not enable Interrupt.
                 */
-               j = i40e_get_tx_pending(tx_ring, false);
+               unsigned int j = i40e_get_tx_pending(tx_ring, false);
 
                if (budget &&
                    ((j / (WB_STRIDE + 1)) == 0) && (j != 0) &&
index 6ed1d9cbf9080fe01abf77841492fb32efa1d62a..cd8ed31dedf515abcc3ff6008652f4f4dfdf8877 100644 (file)
@@ -258,13 +258,12 @@ static bool i40e_clean_tx_irq(struct i40e_ring *tx_ring, int budget)
        tx_ring->q_vector->tx.total_packets += total_packets;
 
        if (tx_ring->flags & I40E_TXR_FLAGS_WB_ON_ITR) {
-               unsigned int j = 0;
                /* check to see if there are < 4 descriptors
                 * waiting to be written back, then kick the hardware to force
                 * them to be written back in case we stay in NAPI.
                 * In this mode on X722 we do not enable Interrupt.
                 */
-               j = i40evf_get_tx_pending(tx_ring, false);
+               unsigned int j = i40evf_get_tx_pending(tx_ring, false);
 
                if (budget &&
                    ((j / (WB_STRIDE + 1)) == 0) && (j > 0) &&