Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp213072ybh; Fri, 6 Mar 2020 19:54:03 -0800 (PST) X-Google-Smtp-Source: ADFU+vvN4prOyNndHeneVPHiSDni3rfT2P9VSEJIDnbkenrZ8LGwSBD3Pf6ak8BwzqoGMKC9fvEE X-Received: by 2002:aca:2419:: with SMTP id n25mr4818438oic.13.1583553243304; Fri, 06 Mar 2020 19:54:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583553243; cv=none; d=google.com; s=arc-20160816; b=0/uj1DvH3BwKN+DC8/bzL/rSBoNtNpHSmLPFmGf7eohaqY1Bd6Wp+kQR9kD+OZCWEg 0m0XAesS4ozAqTqTw5G/G/zD3qSQQ9g4GGls/Q9J0U1ZZS6SVW9+SQR2MUVExWFox2DE KSHqNvxU7/Sa56u4feY21yiEbJK5QcbQjepB3Vv+kxZFojUSkYB6SUL4kLGgN5xpZmZ2 QC7qIizsFDjg8GL0bMbMPaLbQeaeVLxY4o/FWbdwL6cIQ9g5V6T6WZsWjkGPhRQLfYY+ Cgz644ln3LE1s77Szp3YeMQ20Plww8mlq1VIF29PzPO0DYNt1AQT3WGGg8042nJ3s0g+ ChwA== 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=Sx0WZHvc2CtFlekX724RGocwTcvVN2LLNayai+G4XWjt0dJE+TlyoqMBIFoRwRa2gu dxzHU8Q9bG1PNfv1Nj1cS5WKUj5d+TzsYrSq9IflLwLhgK/3H4fG2c6WXSiH0aCn7e0x 1JgbZgmsqmC1g+EPwzJ69sdpTJuwCHHLwJlf0/q9pjtSllm1v3HaHEQOtdEKKom3SU2r j1htiMi8zb4BF8nU6BSWnFFkZ+sSy0V76gzL6lV1xW88ft4Q8rgmvzf5PsmF1j77ioqq fcdFOIVy6zRuMhy7xXC/V4dRZI+qF77bAGD7a9GBI/1aYITAaGRUUs7PmMWWLZPqeu/t O1qw== 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 f187si754925oia.218.2020.03.06.19.53.52; Fri, 06 Mar 2020 19:54:03 -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 S1727073AbgCGDwg (ORCPT + 99 others); Fri, 6 Mar 2020 22:52:36 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:11605 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727052AbgCGDwf (ORCPT ); Fri, 6 Mar 2020 22:52:35 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 221F379A5F9AEFBD8546; Sat, 7 Mar 2020 11:52:29 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Sat, 7 Mar 2020 11:52:19 +0800 From: Huazhong Tan To: CC: , , , , , , Yufeng Mo , Huazhong Tan Subject: [PATCH V2 net-next 3/9] net: hns3: remove an unnecessary resetting check in hclge_handle_hw_ras_error() Date: Sat, 7 Mar 2020 11:42:44 +0800 Message-ID: <1583552570-51203-4-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1583552570-51203-1-git-send-email-tanhuazhong@huawei.com> References: <1583552570-51203-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