Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH -next] net: hns3: simplify the return expression of hclgevf_client_start()
@ 2020-09-21 13:10 Qinglang Miao
2020-09-21 20:45 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Qinglang Miao @ 2020-09-21 13:10 UTC (permalink / raw)
To: Yisen Zhuang, Salil Mehta
Cc: David S. Miller, Jakub Kicinski, netdev, linux-kernel, Qinglang Miao
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
index 20dd50dd7..8eb9af49b 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
@@ -2554,13 +2554,7 @@ static int hclgevf_set_alive(struct hnae3_handle *handle, bool alive)
static int hclgevf_client_start(struct hnae3_handle *handle)
{
- int ret;
-
- ret = hclgevf_set_alive(handle, true);
- if (ret)
- return ret;
-
- return 0;
+ return hclgevf_set_alive(handle, true);
}
static void hclgevf_client_stop(struct hnae3_handle *handle)
--
2.23.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH -next] net: hns3: simplify the return expression of hclgevf_client_start()
2020-09-21 13:10 [PATCH -next] net: hns3: simplify the return expression of hclgevf_client_start() Qinglang Miao
@ 2020-09-21 20:45 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-09-21 20:45 UTC (permalink / raw)
To: miaoqinglang; +Cc: yisen.zhuang, salil.mehta, kuba, netdev, linux-kernel
From: Qinglang Miao <miaoqinglang@huawei.com>
Date: Mon, 21 Sep 2020 21:10:43 +0800
> Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-21 20:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 13:10 [PATCH -next] net: hns3: simplify the return expression of hclgevf_client_start() Qinglang Miao
2020-09-21 20:45 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).