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:
parent
05c3b6e79d
commit
f621df96ac
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue