diff options
author | Carolyn Wyborny <carolyn.wyborny@intel.com> | 2015-02-09 17:42:31 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-09 18:45:00 -0800 |
commit | f217d6ca4a8cde473358637aa29daaaa3d0b57a9 (patch) | |
tree | 810ece66cbdcbc909a1fff8ba7dede518a686db9 /drivers/net/ethernet | |
parent | 2573beec56aa28a0e6d4430fb6796d0c76308bcf (diff) | |
download | linux-f217d6ca4a8cde473358637aa29daaaa3d0b57a9.tar.gz linux-f217d6ca4a8cde473358637aa29daaaa3d0b57a9.tar.bz2 linux-f217d6ca4a8cde473358637aa29daaaa3d0b57a9.zip |
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_txrx.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/i40evf/i40e_txrx.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_txrx.c b/drivers/net/ethernet/intel/i40e/i40e_txrx.c index f4d6d90572d1..2206d2d36f0f 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_txrx.c +++ b/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) 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) diff --git a/drivers/net/ethernet/intel/i40evf/i40e_txrx.c b/drivers/net/ethernet/intel/i40evf/i40e_txrx.c index 459499a47ca3..29004382f462 100644 --- a/drivers/net/ethernet/intel/i40evf/i40e_txrx.c +++ b/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) 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) |