From: Qinglang Miao Date: Mon, 21 Sep 2020 13:10:43 +0000 (+0800) Subject: net: hns3: simplify the return expression of hclgevf_client_start() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f621df96acb44164b1375445e1c7b372979a2b1a;p=linux.git net: hns3: simplify the return expression of hclgevf_client_start() Signed-off-by: Qinglang Miao Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c index 20dd50dd765ab..8eb9af49b85ca 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)