aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaixu Xia <[email protected]>2020-11-14 22:55:39 +0800
committerTony Nguyen <[email protected]>2021-02-10 14:28:40 -0800
commitbfe2e5c44d7242debab8aef13eacd68181664f61 (patch)
tree4fa79c93e11a0db533c0d7d83971720103d30ef8
parenta9219b332f52093dbf9dae5219e820065f9e2cf6 (diff)
i40e: remove the useless value assignment in i40e_clean_adminq_subtask
The variable ret is overwritten by the following call i40e_clean_arq_element() and the assignment is useless, so remove it. Reported-by: Tosk Robot <[email protected]> Signed-off-by: Kaixu Xia <[email protected]> Tested-by: Tony Brelinski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index ccddf5ca0644..63e19d2e3301 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -9842,7 +9842,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;