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>
This commit is contained in:
parent
2573beec56
commit
f217d6ca4a
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue