Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1618440ybi; Wed, 3 Jul 2019 20:00:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyJxTm7UEG9627fssLiFNYU9stfS+hjQ/LRBjez6ioV40ZUw6lpuCXD22GtTqgVYIJWk0j X-Received: by 2002:a17:90a:33c4:: with SMTP id n62mr17097071pjb.28.1562209215069; Wed, 03 Jul 2019 20:00:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562209215; cv=none; d=google.com; s=arc-20160816; b=taSHSjWPo7/T4jBevDcIoky9uEf8HKQR9fRZBA6Cli9KQ2McIU2IH7Q5dY202lO5kr dwFmEAKsHmnr2XjQ1Isx93x0HV7n4XXeyXYY0zd+5XPxcTvpPxFUDQhodBVT3l8HY9lQ oTaCvAABf61TcJkyuT24x0W0ClTRFCozT9wsrsYrl5BhxUPpXjkV4XHXjGf32t/x9Gdd HY3utjUDfTmkfeGP9xUpVys02UGuhEllCqdPnOjNQKxkMGZ/qu7Dc9Cu2EBc0NZD4zvs +Ci+ixl/dfm3aGCLQ6IoP3it2IOsDQ5r/KrrkN7xi0tvsdOXYmVI7Hzsf3RMYViqHg2m H75A== 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=cdGNxnCG0dRMJ1+NSl9LIvswxDirWPGLvHhxjBvgLBg=; b=iJKp4JYC6f9wEzNuX6VilS9CvtXohJX/1/cxTbvKmVb9jd9yGIsza3ekQLI8UGnUFZ EbGBhwt4C3i+3JbRiA4bG+CZzSkfyPHLZZ3lUkSmhC0ZDZTK7bFn6N3AoexVvKjz+6J9 4yr1tlmsaeHmjPnFBhymccCRtO28a4bMQbcJD4A3WLYglef3gp1rbb/lQHGVT355UR2v HGonDg3JpS0HRPbm7nobisGYxZdcSA5kUvYzF4CGGjOzKok21321J0Um0nUHQp/nDdjM LfMZVppKbVHB3wjm6OShQFUdQPOF8Dhx8u58MDg/0uic8KsGUiwQ6KBqE4lYrniotO6w /ThA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bl9EX14h; 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 g18si4096316plq.190.2019.07.03.19.59.45; Wed, 03 Jul 2019 20:00:15 -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=Bl9EX14h; 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 S1727229AbfGDC7O (ORCPT + 99 others); Wed, 3 Jul 2019 22:59:14 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:36251 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727004AbfGDC7N (ORCPT ); Wed, 3 Jul 2019 22:59:13 -0400 Received: by mail-pg1-f195.google.com with SMTP id c13so2182388pgg.3; Wed, 03 Jul 2019 19:59:13 -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=cdGNxnCG0dRMJ1+NSl9LIvswxDirWPGLvHhxjBvgLBg=; b=Bl9EX14hsyMh1TbRFVAEiPY0YsMGwRNJWb2jOLCWtq7VYUpc+Ql3X+vnTdwsTE1Mjj Xw9R1qbJpqWcPybC7B/4RG5+d59sPyJCOZzCCxjhSDSApD/n6IPglHdt/fcT9ydtbEVg ffSFi0Jj5aV7aIMjHpL1sAI1iE84I/CbvJSfZpn6rDAaWruQmzghG4LzCpXVd3PORL2Z pNF0Sczh2Zjp5O8TRn+d/rAsHF/+bfpymK9A0HdTgKJoYO/lm5t/iebFplNiir/Rx5g9 7Z2JrMpPys+PhYLJ2Kky+19jH1ijK+GvCEP5DXD35+lJDXF/M2G6/4p2QTqoI09W2hXb 9AkQ== 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=cdGNxnCG0dRMJ1+NSl9LIvswxDirWPGLvHhxjBvgLBg=; b=IKZuZeCvr39NJOK62Bu748wVj6nlM9BXRf5IDzbhzcZImxheDjiLBOy+Dt1iXcFU0f VlVo9JXfnfg2XhulwyAGqVOBHLqKAr6nyEFQcy0sF1RIZak9+YMnENsY6b0w5yTr0AQf l47vE/vNFa+2JrGI3JMIPHfe83GpbqkJqrAm/zDOtc8JN6SsDN0GGYaNp8sSrLM7xDZY rxJIqx9Jb+js101TxEicU7aXzJ+AewevhS7KfG8nTtq6mVTOAe3zDOlkHPvUM2ZKgcsw m95flLL+xQKEkNk2mR37px6oebq3OmV0f4CyGM4IzctbL1h+T3b71ulj0R71BaOFtO5b fYog== X-Gm-Message-State: APjAAAXLxKGTIj5miWSKjwUBEM7yQbaJA6eCT88fHKWFrPOTy0L413yE Mp6wwfoVo8aUkJWIe0nSRCo= X-Received: by 2002:a17:90b:d82:: with SMTP id bg2mr16831319pjb.87.1562209153111; Wed, 03 Jul 2019 19:59:13 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.187]) by smtp.gmail.com with ESMTPSA id i36sm3472199pgl.70.2019.07.03.19.59.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jul 2019 19:59:12 -0700 (PDT) Date: Thu, 4 Jul 2019 08:29:06 +0530 From: Hariprasad Kelam To: "David S. Miller" , Maxime Ripard , Chen-Yu Tsai , Petr =?utf-8?Q?=C5=A0tetiar?= , Hariprasad Kelam , Florian Fainelli , Andrew Lunn , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: ethernet: allwinner: Remove unneeded memset Message-ID: <20190704025906.GA20005@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/allwinner/sun4i-emac.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/allwinner/sun4i-emac.c b/drivers/net/ethernet/allwinner/sun4i-emac.c index 9e06dff..6253e5e 100644 --- a/drivers/net/ethernet/allwinner/sun4i-emac.c +++ b/drivers/net/ethernet/allwinner/sun4i-emac.c @@ -818,7 +818,6 @@ static int emac_probe(struct platform_device *pdev) SET_NETDEV_DEV(ndev, &pdev->dev); db = netdev_priv(ndev); - memset(db, 0, sizeof(*db)); db->dev = &pdev->dev; db->ndev = ndev; -- 2.7.4