Commit f621df96 authored by Qinglang Miao's avatar Qinglang Miao Committed by David S. Miller

net: hns3: simplify the return expression of hclgevf_client_start()

Signed-off-by: default avatarQinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 05c3b6e7
...@@ -2554,13 +2554,7 @@ static int hclgevf_set_alive(struct hnae3_handle *handle, bool alive) ...@@ -2554,13 +2554,7 @@ static int hclgevf_set_alive(struct hnae3_handle *handle, bool alive)
static int hclgevf_client_start(struct hnae3_handle *handle) static int hclgevf_client_start(struct hnae3_handle *handle)
{ {
int ret; return hclgevf_set_alive(handle, true);
ret = hclgevf_set_alive(handle, true);
if (ret)
return ret;
return 0;
} }
static void hclgevf_client_stop(struct hnae3_handle *handle) static void hclgevf_client_stop(struct hnae3_handle *handle)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment