Browse Source

i40e: Fix for stats init function call in Rx setup

This patch fixes indentation issue and error found in argument
reported by static analysis.  Without this patch, sparse and other
static analysis errors will be found.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Carolyn Wyborny 10 years ago
parent
commit
f217d6ca4a

+ 1 - 1
drivers/net/ethernet/intel/i40e/i40e_txrx.c

@@ -1098,7 +1098,7 @@ int i40e_setup_rx_descriptors(struct i40e_ring *rx_ring)
 	if (!rx_ring->rx_bi)
 	if (!rx_ring->rx_bi)
 		goto err;
 		goto err;
 
 
-		u64_stats_init(rx_ring->syncp);
+	u64_stats_init(&rx_ring->syncp);
 
 
 	/* Round up to nearest 4K */
 	/* Round up to nearest 4K */
 	rx_ring->size = ring_is_16byte_desc_enabled(rx_ring)
 	rx_ring->size = ring_is_16byte_desc_enabled(rx_ring)

+ 1 - 1
drivers/net/ethernet/intel/i40evf/i40e_txrx.c

@@ -596,7 +596,7 @@ int i40evf_setup_rx_descriptors(struct i40e_ring *rx_ring)
 	if (!rx_ring->rx_bi)
 	if (!rx_ring->rx_bi)
 		goto err;
 		goto err;
 
 
-		u64_stats_init(rx_ring->syncp);
+	u64_stats_init(&rx_ring->syncp);
 
 
 	/* Round up to nearest 4K */
 	/* Round up to nearest 4K */
 	rx_ring->size = ring_is_16byte_desc_enabled(rx_ring)
 	rx_ring->size = ring_is_16byte_desc_enabled(rx_ring)