Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2344566ybd; Thu, 27 Jun 2019 10:48:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7SBMTOz2sUwxrc5P1uZxSXN+8OtH58FrEmPQ2XCMxmrmQ9VmOpJfbFa3n4ruAwqH0lsLm X-Received: by 2002:a17:902:748c:: with SMTP id h12mr477675pll.208.1561657716821; Thu, 27 Jun 2019 10:48:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561657716; cv=none; d=google.com; s=arc-20160816; b=Ij/2P6UgzcAeA3lIx2MAWIPOPYCv22rqXcIRNwKheFcMPHjspOtw4eEQjRBE7OdWtm ZXtbzVdTVDydGLrctGBsZVyiMWPE95dhvezZwImtG8K/t8xtKUezi9TeKa0YlUeEq7wH tDf8rVMfzRcjMol/9QAhv/SubDydOH0BAqL3geRfapsd7Wq+DnCCbELcIxjAEAc813rG WmLiNybUuQGrklrV4lIItP98SYDHXUhkNDjD7zsd2niGXDSby38l9AzkNpFU0tuJmf2X 6Hp8vmtcxRpcaencRwulfnBHN9lE4pvMT6QxXo7O0QL4UF4KFds3EiBQ1DKrblbTr5UK 5ImQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dkim-signature; bh=VunMILyBRvBUh7WpINrrKE93lqMfcAEq17rKOg7ZmjA=; b=dk6GZRQKfDpTbikrgcvobsr9SF4vLksFPzibrSyORycMvCTGDIr4tfSCI8bQ/yUs/p 4Q//S3Gvaz+DA0/ijDHKC5TAp1fKBLO3KdME4VKi67DWKupojMpLZGb560mV381RCDCP jfilBl9yWtwBdVEu4/Ypefv2ARz6iFFAcW4A6LdyoToAlzw6rPbU+Au8WJ+q2XtOpABF zu1QL5dEdTVBmhJqAl0jUXrUyM2q6lxf+qQOfT7XsyMH9EhIG3hB+Tcxlv2bMce2qtFV WPBFA1G2lsbNsrCbeuqPFCDDzIZ0M7rdiBfNp82bF5AODACMadEGPJLNpH3jvU4kgClS EUmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=RCynl1w0; 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=fail (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 u18si2816676plq.311.2019.06.27.10.48.20; Thu, 27 Jun 2019 10:48:36 -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=fail header.i=@gmail.com header.s=20161025 header.b=RCynl1w0; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727431AbfF0Rqt (ORCPT + 99 others); Thu, 27 Jun 2019 13:46:49 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:38591 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726876AbfF0Rqs (ORCPT ); Thu, 27 Jun 2019 13:46:48 -0400 Received: by mail-pf1-f195.google.com with SMTP id y15so1597455pfn.5; Thu, 27 Jun 2019 10:46:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=VunMILyBRvBUh7WpINrrKE93lqMfcAEq17rKOg7ZmjA=; b=RCynl1w0cRddlViRReBIItmlHmfN5Zx2Yg1tVg6t0t4fRmBlSYXLpEV/+2MQpPwhTj pxBM2H4/9SbxVQh9edPPxiiMicTvEtv5U/66QPO+F//9NoBeW959GlUPLRBZCU9e5BGK cE1lXvYq37hMJ6l7RlDXKkCkAm+KMQe3LzaQK8eCYFlL/bZ2zfBJah70zNMmFor7b9b6 i8G7IPZnuQXuFXfO1/8eBgvQfgFZN5dLxOxWWARCs6MDTKWyCr4ncPcZbRWPBNPcgSKH /80psgyyzK4tzbYhPlHhjTpxYPM1HFKbuz8I4MEC1hWdIf9OS6+KeJhHiMDZ4PvUjyyj aHaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=VunMILyBRvBUh7WpINrrKE93lqMfcAEq17rKOg7ZmjA=; b=Nl57xA3c5YlNA4aPe/f/SiU3SPdulZ8XCB1IVZuVWyEd3BrgvkoNoCQQmyw4XKijXT QCUg7YY/LKVgIYKUV7rVMohyHM95BoLUbEGsG24b48LLx5rJuiTxYgJ4yif4rKCoAFmF aYE/eZVTGlKyo/uosPfUigDbBsnZQVSmLlJKEsl5Yvmw4XDFvAC/SSC2ZTPAMjEp7J8w dxPNYltpzehUkb6N3lvhenQ2WSyoVHufxWFSDBZejHav8xlImOPy1QazHG7dQVwKq5UH 9NmMhClp2buNLPBaLzp5D/lmxzYbof4MtWAqIC9Sp/UvESUcPztelmbjH1AmJOJMzC36 s3Bw== X-Gm-Message-State: APjAAAUBo+22xEa5XInh7Zf/3IgxinxGKJ58W/rPMU62pYxRgUbUKfX3 WjszEtK7FmIrNBNfjRXAvd8= X-Received: by 2002:a17:90a:26e4:: with SMTP id m91mr7492906pje.93.1561657607793; Thu, 27 Jun 2019 10:46:47 -0700 (PDT) Received: from hfq-skylake.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.googlemail.com with ESMTPSA id r2sm5373668pfl.67.2019.06.27.10.46.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 10:46:47 -0700 (PDT) From: Fuqian Huang Cc: Fuqian Huang , Fugang Duan , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 73/87] ethernet: freescale: Remove memset after dma_alloc_coherent Date: Fri, 28 Jun 2019 01:46:41 +0800 Message-Id: <20190627174641.6474-1-huangfq.daxian@gmail.com> X-Mailer: git-send-email 2.11.0 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In commit af7ddd8a627c ("Merge tag 'dma-mapping-4.21' of git://git.infradead.org/users/hch/dma-mapping"), dma_alloc_coherent has already zeroed the memory. So memset is not needed. Signed-off-by: Fuqian Huang --- drivers/net/ethernet/freescale/fec_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 38f10f7dcbc3..ec87b8b78d21 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -3143,8 +3143,6 @@ static int fec_enet_init(struct net_device *ndev) return -ENOMEM; } - memset(cbd_base, 0, bd_size); - /* Get the Ethernet address */ fec_get_mac(ndev); /* make sure MAC we just acquired is programmed into the hw */ -- 2.11.0