aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40evf/i40e_txrx.c
diff options
context:
space:
mode:
authorShannon Nelson <shannon.nelson@intel.com>2015-02-27 09:15:19 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-03-07 04:59:40 -0800
commit37a2973a058e08f8dcccb265d90176e6b6b55191 (patch)
treec7e65038d7cd0082942e16561963ef4006d7e4fc /drivers/net/ethernet/intel/i40evf/i40e_txrx.c
parentrocker: sparse: fix dynamic allocation on stack warning (diff)
downloadlinux-dev-37a2973a058e08f8dcccb265d90176e6b6b55191.tar.xz
linux-dev-37a2973a058e08f8dcccb265d90176e6b6b55191.zip
i40e/i40evf: Refactor i40e_debug_aq and make some functions static
A sparse complaint in i40e_debug_aq in a funky buffer write goes away by straightening out the code out to something less convoluted. Also fix some other sparse warnings while we are at it, making some functions static and using NULL instead of 0. Change-ID: I93907534fe1f1f675830774b3d14ecf1c6ffc9a0 Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/intel/i40evf/i40e_txrx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40evf/i40e_txrx.c b/drivers/net/ethernet/intel/i40evf/i40e_txrx.c
index fe13ad2def46..021b0d4d8a35 100644
--- a/drivers/net/ethernet/intel/i40evf/i40e_txrx.c
+++ b/drivers/net/ethernet/intel/i40evf/i40e_txrx.c
@@ -542,7 +542,7 @@ void i40evf_clean_rx_ring(struct i40e_ring *rx_ring)
for (i = 0; i < rx_ring->count; i++) {
rx_bi = &rx_ring->rx_bi[i];
rx_bi->dma = 0;
- rx_bi->hdr_buf = 0;
+ rx_bi->hdr_buf = NULL;
}
}
}