Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp436785imu; Wed, 19 Dec 2018 22:34:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/XVd+QSbcbN7sv2DfgW6NvS+e2gUcpoPdnt18t9uU72ZnxgxrKH/+BtZ9qCmUPoxqbiLhXb X-Received: by 2002:a63:2f86:: with SMTP id v128mr8814431pgv.407.1545287678294; Wed, 19 Dec 2018 22:34:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545287678; cv=none; d=google.com; s=arc-20160816; b=YRtKiiIAXnOW8ESzbY3PNGa7lnfUgq5ceKJzBeRn01pyXDcNJI6k7AXoyxc6Au6lWj VLJgdvZZ7jV0Q9GHFS0+Ro6FIMIRfHQyLTm25GQoKA+rrFDBChEdTMvRtpci04yICOMk UJe/HJ1JIQ/Paoybq9fVbi1Sf4djNJ+dFw97KAGTb/U50luCU2hBwQfK4bT1zFqBDdAM 52fINYRthZ56UZiVao930IL/RwymizzP8MY+ICr8BZWJ7hfapQsbpAQ8dB2Qbo9JB41Q KEFIx2CU1WqySCvDApleIPJlrgbKcDRU8LpUzkAZvCVDfh8u3oykl5JQSFN59UTsOHnG Ay0A== 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=0QMUi+uMtyXnOWCz5QvK/ZBZvX+oi9LcC4Ea/7KbnQM=; b=IxUBKhu3SgOvG2JEZNZh4aMlV43Tw9yAUbsZU2HAuizxPysjP2zkFJKPTq2oel3/Vt GdXFsBAU9Gv/z29ir/oZJelucZvvYNg/FVLEOK1Z3G8rgYtYTKxIPfDs+6VFWhXVWz29 cC0qz8Lmme0LgkHvmFwiFS9amURPPnuVumkXUlxFn+l7QjDXWnqqeq8tKGWJas9qxrJs HkQ0IB/9sLyLeIikYpC0Yv06T0Ov3vbvK8kP13Zk6zMINOn3UcMnFQ6sZQL3giaMU1ue ybgYdqsP/waqdQawMYJuN2qEb1RN18RRIPhtcQX07cm2pKKOnh4s8RGVBZjgDAVZFHlJ cCfw== 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 g12si17794112pgd.567.2018.12.19.22.34.22; Wed, 19 Dec 2018 22:34:38 -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 S1730120AbeLTDQu (ORCPT + 99 others); Wed, 19 Dec 2018 22:16:50 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:16613 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729879AbeLTDQc (ORCPT ); Wed, 19 Dec 2018 22:16:32 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 3B2FB7EF21CAF; Thu, 20 Dec 2018 11:16:28 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.408.0; Thu, 20 Dec 2018 11:16:16 +0800 From: Peng Li To: CC: , , , , , Subject: [PATCH net-next 9/9] net: hns3: remove redundant variable initialization Date: Thu, 20 Dec 2018 11:52:06 +0800 Message-ID: <1545277926-66432-10-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1545277926-66432-1-git-send-email-lipeng321@huawei.com> References: <1545277926-66432-1-git-send-email-lipeng321@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch removes the redundant variable initialization, as driver will devm_kzalloc to set value to hdev soon. Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c index 156242f..82103d5 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c @@ -1721,7 +1721,7 @@ static int hclgevf_configure(struct hclgevf_dev *hdev) static int hclgevf_alloc_hdev(struct hnae3_ae_dev *ae_dev) { struct pci_dev *pdev = ae_dev->pdev; - struct hclgevf_dev *hdev = ae_dev->priv; + struct hclgevf_dev *hdev; hdev = devm_kzalloc(&pdev->dev, sizeof(*hdev), GFP_KERNEL); if (!hdev) -- 1.9.1