diff options
author | Qinglang Miao <miaoqinglang@huawei.com> | 2020-09-21 21:10:43 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-21 13:44:54 -0700 |
commit | f621df96acb44164b1375445e1c7b372979a2b1a (patch) | |
tree | 43137923bcb1cc1035e90b95bd3b3b812befbb2b | |
parent | 05c3b6e79db2910cdf9b80755204e96be3a83dcc (diff) |
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>
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 8 |
1 files changed, 1 insertions, 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 20dd50dd765a..8eb9af49b85c 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) |