Skip to contentSkip to conversation

i40e: remove the useless value assignment in i40e_clean_adminq_subtask

PATCH New [email protected] 1 participant 1 message Nov 14, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i40e: remove the useless value assignment in i40e_clean_adminq_subtask

From: Kaixu Xia <[email protected]>

The variable ret is overwritten by the following call i40e_clean_arq_element() and the assignment is useless, so remove it.

---
 drivers/net/ethernet/intel/i40e/i40e_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e_main.c +1 -1
index 4f8a2154b93f..7d59fc2eded6 100644
@@ -9356,7 +9356,7 @@ static void i40e_clean_adminq_subtask(struct i40e_pf *pf)
 			dev_dbg(&pf->pdev->dev, "ARQ: Update LLDP MIB event received\n");
 #ifdef CONFIG_I40E_DCB
 			rtnl_lock();
-			ret = i40e_handle_lldp_event(pf, &event);
+			i40e_handle_lldp_event(pf, &event);
 			rtnl_unlock();
 #endif /* CONFIG_I40E_DCB */
 			break;
Signature · 1 line
2.20.0