Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6355926ybf; Thu, 5 Mar 2020 18:59:12 -0800 (PST) X-Google-Smtp-Source: ADFU+vtI6+bgMQHcoVNRqeriCsbJmDqffu445SU/SP80nL1ewggIyfFM/LX9efxG5Yu7D83d545D X-Received: by 2002:aca:7211:: with SMTP id p17mr1194212oic.4.1583463551902; Thu, 05 Mar 2020 18:59:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583463551; cv=none; d=google.com; s=arc-20160816; b=u3cWrpb7RbrFL6FQYu94Fjckyooo7dIxC2fe3txI1iVVsPZde4FOnKp9hFPrxbjDlV DMXRNcPbencVM6hx5qRwOzSBvpeRaNw7NBOZLC4j4fYGYLV6aK2I3CAxA4wRHMojXynf b/SPfHX2p2neNML0Lnqe8lkH+NWT01aoJRq3ow0AI7vgWkZbl2Xj/WaSKe8yzzfrUmJi zW39Xpt88bhsTOGsnNtxuRsicCcfN41SR22MzmjtMAoiMqkCkSJuqxfaQcaSSA+U2Hw6 Cel9hsgmP3EAoaK65fLPL2/dL/wzEwWYwB16VQjaW8mZ7CabLOeCeAb03cmbm0MsyQ7U VdLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=Zr3QR4sLG/XqOm5FiULhyjeAKgHIWVqmI1L0EfnSbbs=; b=YZCTa6xDSlHHIaz5rfBWsLshTfHFmaumOheBKqpAFHWxwGMK9MP9ULpL5RsAf9PA09 x6nc+W/fdRTSbg+AcccCGFYQKWCXxx3ee3sxvXSHFtOUFCB4he7lCosEi+fz4lYi77m4 5GtStiNBqe0hS8a0/Z2t/OcQYNiZaj5P1hoABuZ3t7qAlqnI8q/Guny4oZd2O7aI1r3N glZorvDL1Gdu874rKPlC/8EEPhO6A/ZCIYSqJ9ftRHYWM5Qhb33N4An4IfjKBQ+qW4Ws ZPUZgj0lUQfEIfnpalxYd3f7Cb0FuL23+vZjuZ3zzcVYJjZHCME3X0CTziKTIFPohsCA Uozg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v10si503177oth.136.2020.03.05.18.58.45; Thu, 05 Mar 2020 18:59:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727123AbgCFC6F (ORCPT + 99 others); Thu, 5 Mar 2020 21:58:05 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:38326 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727052AbgCFC6D (ORCPT ); Thu, 5 Mar 2020 21:58:03 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 6E514ED4F500B8F380FB; Fri, 6 Mar 2020 10:57:58 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Fri, 6 Mar 2020 10:57:49 +0800 From: Huazhong Tan To: CC: , , , , , , Yufeng Mo , Huazhong Tan Subject: [PATCH net-next 3/9] net: hns3: remove an unnecessary resetting check in hclge_handle_hw_ras_error() Date: Fri, 6 Mar 2020 10:57:12 +0800 Message-ID: <1583463438-60953-4-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1583463438-60953-1-git-send-email-tanhuazhong@huawei.com> References: <1583463438-60953-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yufeng Mo In hclge_handle_hw_ras_error(), it is unnecessary to check HCLGE_STATE_RST_HANDLING flag, because the reset priority has been ensured by the process itself. Signed-off-by: Yufeng Mo Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c index c85b72d..50d5ef7 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c @@ -1667,9 +1667,6 @@ pci_ers_result_t hclge_handle_hw_ras_error(struct hnae3_ae_dev *ae_dev) hclge_handle_rocee_ras_error(ae_dev); } - if (test_bit(HCLGE_STATE_RST_HANDLING, &hdev->state)) - goto out; - if (ae_dev->hw_err_reset_req) return PCI_ERS_RESULT_NEED_RESET; -- 2.7.4