Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1783053imm; Thu, 19 Jul 2018 07:49:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdONUNsAOVsd580gvzeveSMgRYiwlAjJAawxaAMLzv4olGcwxB/Roxu875i2aSE7blOEw5a X-Received: by 2002:a17:902:543:: with SMTP id 61-v6mr2833523plf.126.1532011780687; Thu, 19 Jul 2018 07:49:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532011780; cv=none; d=google.com; s=arc-20160816; b=N+4VdiXl9r+OcVtdfzJqLaWx4WOrN7Kh2eqEFziWOwyb2l3QjtuZjNKzkpUiIopxXx 3EXFYbejX79hODzDhswD16iadMoXkD2h4OpbNj03yMDMkEabWf26sCHhZxD0VtI2tOaf d7fUUIi1CmJ+x9lX2IzznMQDcZU20WwULTM+ahNmT7COZlipwsGeHi+/uEMEUNnaYHO3 EXv4TIcKZo+o3YJKRwiYSoAMMRKNI91hXViDOnAPF1XhLp9qoKjwYIA0fMtaF5uk9v9o JAL6USewHvK6zoClYLZ711q/E7m41dYrjwQf/xN4oMY3LWaPrfltB+OgdVPc3kzeuPZt WHUA== 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:arc-authentication-results; bh=IsGfBvaXXVicntikDeginQSLE+Fo/wurhT8amb1c93I=; b=BFXVDmB/iVytHKr1OpLHSX3tzfXKtKX1o5mWKpBPqrtYMGWNrFwrPS2ar3g/t7BjoJ qdtAFZQ3dsgklyNnYiyGYslwsfTtz2VqmwE8gnH2/HO3W++VJgEaE3z20kNNVnVtwqM3 RHJTVD9fYEtoHWEe2UwQBLg7aDVkOLeMTiVVNHcTlhJ4Jb9pyW1tgHcLSgaoIurHbBnK c/PEVpKHUe5waQHdodXszbp2fc/YX9u3qZZTHENcXg/wGurW55Cy24+lsCSgKYMYpxyq E6otnyg7bzqw2ZRqKTrrg7jQg1iUHaK9rVa3N2gsPBZbiA3hnlJ8OY0kXMwiFqyrPYtR kp9Q== 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 e33-v6si5559563pld.231.2018.07.19.07.49.26; Thu, 19 Jul 2018 07:49:40 -0700 (PDT) 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 S1731735AbeGSPbd (ORCPT + 99 others); Thu, 19 Jul 2018 11:31:33 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:54197 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727501AbeGSPbd (ORCPT ); Thu, 19 Jul 2018 11:31:33 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 5758218C34C4B; Thu, 19 Jul 2018 22:47:55 +0800 (CST) Received: from S00293818-DELL1.huawei.com (10.202.226.54) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.382.0; Thu, 19 Jul 2018 22:47:45 +0800 From: Salil Mehta To: CC: , , , , , , , Jian Shen Subject: [PATCH net-next 1/9] net: hns3: Remove some redundant assignments Date: Thu, 19 Jul 2018 15:46:58 +0100 Message-ID: <20180719144706.644-2-salil.mehta@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180719144706.644-1-salil.mehta@huawei.com> References: <20180719144706.644-1-salil.mehta@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.202.226.54] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jian Shen Remove some redundant assignments, because they have been set to zero when allocate hdev. Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 266c686..b271880 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -5595,8 +5595,6 @@ static int hclge_init_ae_dev(struct hnae3_ae_dev *ae_dev) hdev->pdev = pdev; hdev->ae_dev = ae_dev; hdev->reset_type = HNAE3_NONE_RESET; - hdev->reset_request = 0; - hdev->reset_pending = 0; ae_dev->priv = hdev; ret = hclge_pci_init(hdev); -- 2.7.4