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

Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Qinglang Miao 2020-09-21 21:10:43 +08:00 committed by David S. Miller
parent 05c3b6e79d
commit f621df96ac
1 changed files with 1 additions and 7 deletions

View File

@ -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)