]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: hns3: simplify the return expression of hclgevf_client_start()
authorQinglang Miao <miaoqinglang@huawei.com>
Mon, 21 Sep 2020 13:10:43 +0000 (21:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Sep 2020 20:44:54 +0000 (13:44 -0700)
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c

index 20dd50dd765ab36f87b5d6c2d6d40e76ef83db11..8eb9af49b85ca440eb6c15035e6d1710705c5655 100644 (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)