i40e: Fix for stats init function call in Rx setup
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Tue, 10 Feb 2015 01:42:31 +0000 (17:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Feb 2015 02:45:00 +0000 (18:45 -0800)
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>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.c

index f4d6d90572d1bf806f84ffc1382d3f3e221ae387..2206d2d36f0fdf2e9f249c7624e156f8c1b17118 100644 (file)
@@ -1098,7 +1098,7 @@ int i40e_setup_rx_descriptors(struct i40e_ring *rx_ring)
        if (!rx_ring->rx_bi)
                goto err;
 
-               u64_stats_init(rx_ring->syncp);
+       u64_stats_init(&rx_ring->syncp);
 
        /* Round up to nearest 4K */
        rx_ring->size = ring_is_16byte_desc_enabled(rx_ring)
index 459499a47ca3d053ac7b3e469ec2f7b712cfb5d0..29004382f462ce717fd27b5b004139f5ef0efd1a 100644 (file)
@@ -596,7 +596,7 @@ int i40evf_setup_rx_descriptors(struct i40e_ring *rx_ring)
        if (!rx_ring->rx_bi)
                goto err;
 
-               u64_stats_init(rx_ring->syncp);
+       u64_stats_init(&rx_ring->syncp);
 
        /* Round up to nearest 4K */
        rx_ring->size = ring_is_16byte_desc_enabled(rx_ring)