igbvf: remove unused variable and dead code
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 13 Apr 2016 23:08:30 +0000 (16:08 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 13 May 2016 22:06:33 +0000 (15:06 -0700)
The variable rdlen is set but never used, and thus setting it is dead
code. Remove it.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igbvf/netdev.c

index c12442252adbd0bdf76c1a1aa5394a796b37d0de..78af4c7716d33ffaee58bfa39585bf5040b79a47 100644 (file)
@@ -1367,7 +1367,7 @@ static void igbvf_configure_rx(struct igbvf_adapter *adapter)
        struct e1000_hw *hw = &adapter->hw;
        struct igbvf_ring *rx_ring = adapter->rx_ring;
        u64 rdba;
-       u32 rdlen, rxdctl;
+       u32 rxdctl;
 
        /* disable receives */
        rxdctl = er32(RXDCTL(0));
@@ -1375,8 +1375,6 @@ static void igbvf_configure_rx(struct igbvf_adapter *adapter)
        e1e_flush();
        msleep(10);
 
-       rdlen = rx_ring->count * sizeof(union e1000_adv_rx_desc);
-
        /* Setup the HW Rx Head and Tail Descriptor Pointers and
         * the Base and Length of the Rx Descriptor Ring
         */