Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1105799ybi; Sun, 30 Jun 2019 07:31:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpB+egFmibc7bd88Wq2xRcKJVPt/cg68HL1u4dmR/DAeG8XB8uO4nhn0vdXaCdpDkOwFuh X-Received: by 2002:a63:3fc9:: with SMTP id m192mr3604103pga.429.1561905084570; Sun, 30 Jun 2019 07:31:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561905084; cv=none; d=google.com; s=arc-20160816; b=hfQ3Se4mde42EhghoqZBwSxX0xE0x54BDe7Nb0w3Mhy6AF9JCG2c0KBr443ft5yP5J BPYtePZqaNBl9HeCdrlHEvF4cw95p6SYCpN3NO1kqfgndhlpdnFj0VvN0nKQNMQ587xy 6L50vPkENuv6SmUb1QrQx6mM5fWUdmRLAzNJyfrGwsmuU5eFkYxicORcGwwewq5N+ZYL f+EXNmjKr5VxNkoowwfd3mExVdYErM4KTu5KgYWEpYL/AYLqCR1mru3qbDt0ff64LPa8 G4PwzbMp1UvwT4w/ICnO2564aPCfWgAoN2hyI4lLK0q2T7HbiOAnvVaFQbyJzg5FlnSs A/Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=A7XL+qSvCLvsjTbzTI2K8VFDVm1pv1sO4YoeogNZP4U=; b=Cf+S7K0yL+E4IAaiDMhj1ckkzRnAI1z9BAgqjK8kiaYtMXTNsFlurd/Xrtr89u6OMi SnDF7XZtkoyieLEcEJvPNsTGlChdw6Wy6Z+nr8aqvko4pLL2ylPyO15VID8Mdij4ojkC iEo9L5z00ggYtCieW++8JFUxtbrQloGSUM2HsAGOV/hFipkASHIEqAZL3kaeH5UzPURP FO1YcEn4r2TEN9WBTlBuH8nYOgXmUdqJKHP+tfGoYgOYqRY31AJ6uynGo1wKyJQh8R3n VyG8IzOI87Ia/JJz1PgLa4iuHRMzRmAEKUC/FucsE71J47d2lQNQTJBwljBrhQiMRzjC Xfjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WocshXmM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si7472268pll.347.2019.06.30.07.30.56; Sun, 30 Jun 2019 07:31:24 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WocshXmM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726618AbfF3O35 (ORCPT + 99 others); Sun, 30 Jun 2019 10:29:57 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46722 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726500AbfF3O35 (ORCPT ); Sun, 30 Jun 2019 10:29:57 -0400 Received: by mail-pg1-f196.google.com with SMTP id i8so1536846pgm.13; Sun, 30 Jun 2019 07:29:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=A7XL+qSvCLvsjTbzTI2K8VFDVm1pv1sO4YoeogNZP4U=; b=WocshXmMMY6BwgYpCy4zHm/Ouj9z7d7H/lj+vQDCYBdpdAy8OUaopHsgnr6Y+B97Fs Yo8D5vpgW/gh1ZWd06NpV00WlHlxcGZREd2lHacooXqMV0qV5Dlk9auViSk7sdp26KIw 1yjz9ZLxDkJo3nx1NHI2I/d14RslPvZsWWOLh5Q4G8zaaXLmU3+/E1Fd4cib1YDZEXJE 1rL2THNoIjoXaICsqz1rre+zLSWJxtoU9XuW2bdBTe0JzVWZLi7PDz0dZXvr+0LPFvlh /cpNCJQVjE5PKrneKsWW7v700qI0IpquHQw5+IDA2sJPkqQYBOPqv05BB2iAYvpCBDGm kgYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=A7XL+qSvCLvsjTbzTI2K8VFDVm1pv1sO4YoeogNZP4U=; b=GF0qkCZ//xcI/d/Za84MdNVEfsZ6BzG4SXfQfdVkrZZ9/HkGhMa2d6XbKn2W/+kq02 90QqKvr4oQCnJbtybrfH9tcMOHTNuh2D6Q/Xrc3EqiBq/kIa76CgdPW48AwS86z5xu9E P/FQ07x3PmSJUZflea3CzC+dqx2uZePrI90lFqc5bJm5fc3ssu+VaglzhwfiC03MI8vX v7pc7pVoJpdAGbOLDhiQYhfKYwAYyAiExHD61XxGlwKqQxhpeXWjHP2dG4pQ83U54EHY 3irZq0Htp2mW3loGhXkYEKuRQDJAjng5jdD0/Q508t/03qlaGudxCAJvUkZUEIrmmbrj q4CQ== X-Gm-Message-State: APjAAAUChYvQXlzUvYitkJIp/gtAbgTUwqb89OxrOyY+k9QwaI2tQAu3 U+r0xT3586hc1jRrLLRYvoU= X-Received: by 2002:a63:1a5e:: with SMTP id a30mr18908127pgm.433.1561904996250; Sun, 30 Jun 2019 07:29:56 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.164.161]) by smtp.gmail.com with ESMTPSA id t8sm7930660pfq.31.2019.06.30.07.29.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Jun 2019 07:29:55 -0700 (PDT) Date: Sun, 30 Jun 2019 19:59:49 +0530 From: Hariprasad Kelam To: "David S. Miller" , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Andrew Lunn , Greg Kroah-Hartman , Hariprasad Kelam , YueHaibing , Thomas Gleixner , Luis Chamberlain , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: ethernet: broadcom: bcm63xx_enet: Remove unneeded memset Message-ID: <20190630142949.GA7422@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unneeded memset as alloc_etherdev is using kvzalloc which uses __GFP_ZERO flag Signed-off-by: Hariprasad Kelam --- drivers/net/ethernet/broadcom/bcm63xx_enet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c index 85e6102..f2dd74c 100644 --- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c +++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c @@ -2659,8 +2659,7 @@ static int bcm_enetsw_probe(struct platform_device *pdev) if (!dev) return -ENOMEM; priv = netdev_priv(dev); - memset(priv, 0, sizeof(*priv)); - + /* initialize default and fetch platform data */ priv->enet_is_sw = true; priv->irq_rx = irq_rx; -- 2.7.4