[dpdk-dev] [PATCH 9/9] net/hns3: remove redundant return value assignments

Wei Hu (Xavier) huwei013 at chinasoftinc.com
Tue Sep 29 13:09:45 CEST 2020


From: Hongbo Zheng <zhenghongbo3 at huawei.com>

When an error occurs in the reset process, -EIO is returned.
The assignment of ret here is redundant, so deleted it.

Signed-off-by: Hongbo Zheng <zhenghongbo3 at huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei at huawei.com>
---
 drivers/net/hns3/hns3_intr.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/hns3/hns3_intr.c b/drivers/net/hns3/hns3_intr.c
index dfd7371..2565688 100644
--- a/drivers/net/hns3/hns3_intr.c
+++ b/drivers/net/hns3/hns3_intr.c
@@ -1888,7 +1888,6 @@ hns3_reset_process(struct hns3_adapter *hns, enum hns3_reset_level new_level)
 		if (hw->reset.wait_data->result == HNS3_WAIT_REQUEST)
 			rte_eal_alarm_cancel(hns3_wait_callback,
 					     hw->reset.wait_data);
-		ret = -EBUSY;
 		goto err;
 	}
 
-- 
2.9.5



More information about the dev mailing list