Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp753214pxb; Wed, 16 Feb 2022 03:46:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/6hkinEAUzgTxJ3hLlAWNkTLV+qHWRoi3mMimA8/H2j2pThxwi1vRopF5ZTpKgDayyM6J X-Received: by 2002:a17:907:20dc:b0:6b7:ecde:4ca1 with SMTP id qq28-20020a17090720dc00b006b7ecde4ca1mr1997542ejb.102.1645011973824; Wed, 16 Feb 2022 03:46:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645011973; cv=none; d=google.com; s=arc-20160816; b=bw2uOnhaPIorQYLvp8H/bU71Yr8960v7rIYl1oiz0PUk7ODOggc4G5HDUxg1X2j//X TsXy6bVsM9O2ngKZLsH5BUW68Myy0YpDzO3jqgOJzsxlE54tB7k4X2n/qDhGeSrWorik mf4rsk0jY2EkSA6/z46yi0eDqGXDe9gQHCJxJgr61r51wBbK836tw1GKcBJjKckRW2kz LDGDqCYoL7vM+ax/E8VXAGikwM0ZNxWIW+ErL5aKrLJj9UUO9+hsFD8f8KhPAgaPutxp WJ8a/haPvC7ldKId/AGYbU40HpMwkiFHmIsclntjNO3yL6m7L51ukkSBAA9vUx+gkLze xd7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=4lnQ9Nr6SPHabfsCvrL3gwe/DTg5JdlThH/Go2+QC38=; b=zcxDh+JRTORhtoEyOjr6AivKKtnCBYYnzmJExLxSccKf4wmE6mxk+pekDgQd9KREsK q8gFOHJtPCt6X8f1JIs+sQrCrM4VDvp0dHdNffyYNH5iErakLwCunEhysbujMIjfEpdT Q0EOZViBCLF0sPB4nmL2yUovvxbIBID2d+eTI9a/Zk3NwtVgvfj7v+imXgu/GkQvmTRN /SDP8Ro6y1ojjVsjKH4zNVKrWdyP5S16bW1Od5pqojyiPRT2acntGRF+224XbMU1+EYM yb4JjQVw6PA6i8eOxKAviQB02/ULl2S6+DF30srBR1FPH6P+/HoPiWt+G3+siNgrtOK2 C2Ng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs15si4734407ejc.574.2022.02.16.03.45.50; Wed, 16 Feb 2022 03:46:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231853AbiBPLfb (ORCPT + 99 others); Wed, 16 Feb 2022 06:35:31 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:54140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231195AbiBPLfa (ORCPT ); Wed, 16 Feb 2022 06:35:30 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 693F19F6D7; Wed, 16 Feb 2022 03:35:17 -0800 (PST) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4JzG751cf8z9scb; Wed, 16 Feb 2022 19:33:37 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 16 Feb 2022 19:35:14 +0800 From: YueHaibing To: , , , , CC: , , YueHaibing Subject: [PATCH net-next] net: hns3: Remove unused inline function hclge_is_reset_pending() Date: Wed, 16 Feb 2022 19:35:07 +0800 Message-ID: <20220216113507.22368-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is unused since commit 8e2288cad6cb ("net: hns3: refactor PF cmdq init and uninit APIs with new common APIs"). Signed-off-by: YueHaibing --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h index adfb26e79262..3c5e76eaf90b 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h @@ -1060,11 +1060,6 @@ static inline int hclge_get_queue_id(struct hnae3_queue *queue) return tqp->index; } -static inline bool hclge_is_reset_pending(struct hclge_dev *hdev) -{ - return !!hdev->reset_pending; -} - int hclge_inform_reset_assert_to_vf(struct hclge_vport *vport); int hclge_cfg_mac_speed_dup(struct hclge_dev *hdev, int speed, u8 duplex); int hclge_set_vlan_filter(struct hnae3_handle *handle, __be16 proto, -- 2.17.1