diff mbox series

[v2,9/9] net/hns3: remove redundant return value assignments

Message ID 20200929120117.50394-10-huwei013@chinasoftinc.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers show
Series updates and fixes for hns3 PMD driver | expand


Context Check Description
ci/Intel-compilation success Compilation OK
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-testing success Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/checkpatch success coding style OK

Commit Message

Wei Hu (Xavier) Sept. 29, 2020, 12:01 p.m. UTC
From: Hongbo Zheng <zhenghongbo3@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@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
 drivers/net/hns3/hns3_intr.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series


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)
-		ret = -EBUSY;
 		goto err;