diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2013-11-26 11:49:16 +0100 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2013-12-16 09:49:22 +0100 |
commit | 895106a577c4ad2231c48f9cccb3cff1ae880471 (patch) | |
tree | f51fe0f532ef5f1fd1b6f7db8bc77ae52d9aae74 /drivers/net/ethernet/intel/i40e/i40e_hmc.c | |
parent | i40e: init flow control settings to disabled (diff) | |
download | linux-895106a577c4ad2231c48f9cccb3cff1ae880471.tar.xz linux-895106a577c4ad2231c48f9cccb3cff1ae880471.zip |
i40e: trivial fixes
Prevent some compiler warnings and implement some other
trivial fixes.
Change-Id: I7f49d79b91b94df1ad4a8306a0410ed72238845f
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_hmc.c')
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_hmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_hmc.c b/drivers/net/ethernet/intel/i40e/i40e_hmc.c index 901804af8b0e..bcedf3fb1143 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_hmc.c +++ b/drivers/net/ethernet/intel/i40e/i40e_hmc.c @@ -47,10 +47,10 @@ i40e_status i40e_add_sd_table_entry(struct i40e_hw *hw, u64 direct_mode_sz) { enum i40e_memory_type mem_type __attribute__((unused)); - i40e_status ret_code = 0; struct i40e_hmc_sd_entry *sd_entry; bool dma_mem_alloc_done = false; struct i40e_dma_mem mem; + i40e_status ret_code; u64 alloc_len; if (NULL == hmc_info->sd_table.sd_entry) { |