git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
243651c
)
net/hns3: remove redundant return value assignment
author
Hongbo Zheng
<zhenghongbo3@huawei.com>
Tue, 29 Sep 2020 12:01:17 +0000
(20:01 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Thu, 8 Oct 2020 17:58:10 +0000
(19:58 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/net/hns3/hns3_intr.c
b/drivers/net/hns3/hns3_intr.c
index
dfd7371
..
2565688
100644
(file)
--- 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;
}