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

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

parent 05c3b6e7
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -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)