Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3136333pxk; Mon, 21 Sep 2020 06:15:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBb/8pXemoURYuKfeaRh3IqTk/5DBKi08x4B+QhSLAWL4w8zBxytclfcWKfgstWZ5C/ZPN X-Received: by 2002:a17:906:fa01:: with SMTP id lo1mr51466745ejb.394.1600694099868; Mon, 21 Sep 2020 06:14:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600694099; cv=none; d=google.com; s=arc-20160816; b=JMPmJ0JzX/l7LF9thsh/mf04blXGIdWBSF9mE8zklwldDFinDecGe7zI87OufLEj7d 7dVOUIadE45b6fggm3FZLnzUpIKnr7GWvEy+BYeJNTAKORGAa/Rhkyp5ukO7X/9UF4BH yb2td61CgwC9isxSGM5b4O2QGHu3bIcOIkfMvsQADG/3T/R3pdsGHiZpQ19TYNDi/uJz XGrLVGZCOSvTUTufRcpn/foN+yIV9SS9zseGiKNzzrnQ3gqQ9GiL3HvJP7sakLRLhnQQ lFBWagxHCbsoe+vlHK/B5/B8wzA1ePAPu/1RP8u6X4NFp5sW8PCwIsWRVyDLyKw/5LHD 1lKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=fkUMiW01ePB0mjE3ZlPEUbAJd/lmMRYcmAZyq3OyYng=; b=FzM1qQeRqQhhxsOhsFgZcq81NI55RbBQ4gzHE7LCHBpHUSDe2oa1WV7vBDZBjGwKRo PKfxEGqpyzE5na0EuAP54xRtqi1RbXFwdQ82TOkHgVnJfikQ5pb5+MYhEKupbbKNTTHu mjfwJRCMTKDY4sp95J2rsnLDHxNtdmIqwqGoKCjnSY2xC9eEfsgYF0k36WIaSCCpQIbH CWjL3GJGj1TooDGyFM+zItnmuS4z0xnZdrFCo5A9Z06VAhwJwF61CHomD6Nlr5QFEA9M rzFM3bRjuGhyG/k/tUgxFBOn8paHJfNBWSv79Akj+43VHJ28JYbra8qMOme+y+g0vhqW pk0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lc19si8264432ejb.192.2020.09.21.06.14.32; Mon, 21 Sep 2020 06:14:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727681AbgIUNMh (ORCPT + 99 others); Mon, 21 Sep 2020 09:12:37 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13761 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727334AbgIUNKb (ORCPT ); Mon, 21 Sep 2020 09:10:31 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id B32B53BE298BE1521656; Mon, 21 Sep 2020 21:10:27 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 21:10:19 +0800 From: Qinglang Miao To: Yisen Zhuang , Salil Mehta CC: "David S. Miller" , Jakub Kicinski , , , Qinglang Miao Subject: [PATCH -next] net: hns3: simplify the return expression of hclgevf_client_start() Date: Mon, 21 Sep 2020 21:10:43 +0800 Message-ID: <20200921131043.92385-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Qinglang Miao --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 8 +------- 1 file changed, 1 insertion(+), 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 20dd50dd7..8eb9af49b 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) -- 2.23.0