Skip to content

Commit 1c306f7

Browse files
Dan CarpenterJeff Kirsher
authored andcommitted
i40e: fix an uninitialized variable bug
We removed this initialization but it is required. Let's put it back. Fixes: 895106a ('i40e: trivial fixes') Signed-off-by: Dan Carpenter <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent c74dff1 commit 1c306f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/i40e/i40e_hmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ i40e_status i40e_add_sd_table_entry(struct i40e_hw *hw,
4949
struct i40e_hmc_sd_entry *sd_entry;
5050
bool dma_mem_alloc_done = false;
5151
struct i40e_dma_mem mem;
52-
i40e_status ret_code;
52+
i40e_status ret_code = I40E_SUCCESS;
5353
u64 alloc_len;
5454

5555
if (NULL == hmc_info->sd_table.sd_entry) {

0 commit comments

Comments
 (0)