From patchwork Thu Jul 19 14:46:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 142345 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1822822ljj; Thu, 19 Jul 2018 07:48:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcHom4nVy93qo2Xp9kcSJNSNwfqZlbfNB9xv7uGuFzfX1tsknhMxnhGtcTDXktljrq3DZJM X-Received: by 2002:a17:902:a716:: with SMTP id w22-v6mr10351838plq.271.1532011686263; Thu, 19 Jul 2018 07:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532011686; cv=none; d=google.com; s=arc-20160816; b=bbwhNfJBiBP2GSfM6Q/CqjCfvllhsTYswRQREpOh2X41FbkaGuXqrV0fccIQJaEL3q 2Arg7Q98G6GzGoAJLSRHHWYE+77hhmiMV4cIFtEzYRvOFhWnLfNlFQvl+2NwHdsfnpOf TTO/DYONjjfrnHPML3I7RXGZfw9/KsbVcYhJUeygLideKsS148cOf6G17ukXeqRoLbEH 2TlV73ArjaIAeZebcwmoWmjSl9r055Ajh7lbSnVr91iJsKutANq7QriBwZOyxfwSEnDx /ZqACkdoGh3Zz9e+jZTq2iQ9NBxqevM1dXbX1P2r0WmeEZnyU2LmRXZIkZ8QFCaa21bO UYnw== 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 j12-v6si6106588pgk.391.2018.07.19.07.48.06; Thu, 19 Jul 2018 07:48:06 -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 S1731842AbeGSPbd (ORCPT + 31 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 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(-) -- 2.7.4 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);