Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2337697ybd; Thu, 27 Jun 2019 10:40:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqMzdTYyo6A3sM7cypmcQUnd9tNcl17dgBiq3HQmRaxxw1//hAzAecigxE5TGB+GyFF8b4 X-Received: by 2002:a17:902:6b86:: with SMTP id p6mr6208958plk.14.1561657248569; Thu, 27 Jun 2019 10:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561657248; cv=none; d=google.com; s=arc-20160816; b=pCcebKlEclJIyn/jlUoBCslnGpT7GCxRqtHOTLLERd3SJqA2E55YMryY/zHpLPfJL1 a4u89h+3/6PTrV+NVeA3TAOgBvvPMHkeqX5bb698dXFMNuZkhVflZ3KrPz0hktpBhiCd o+ug63i1ZqJkzDoutq5/rQA7gKWdwjdO/1YBW/dIR/6lp9iydM4zz41bUgP8lhqgsZ0V 0HyAm7Rp7hL2i/UKPYkg00pU6KB/cO91LwYY33NtpMorIUEQPEYGcPBat2VOqLcmHTUU jQ0j+9xyzOpcFjKve9XBlDU4H61AFYyqawT4S3cfrZkCF2gWTsfWkMr2pvYQ5y0/p7y+ 2mPQ== 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=FR72I8Co0+MJGxYGED+5/dqb9dBV7h2vnmoy22KZs5Q=; b=WeBfad2B89epG+kqaQr0GoOLNyTaMcu6iU2exbeQ9whiKYrDeh8plFzBk4QxohPV1A KZSKKgsjomkNCXAG8RmdRTGsZPPXLhsYDODVXsD8EuzxAEaq1Tiuj+ys6bNrdQawrY04 VNL16TWdBTpQzgJWufJP4/8QZ7BJhSYZzAoGaZA85EByU0P3zACdMBA5QqovzUi5AAzX Doyk1PUwEnpSmXld+iC2/7r+mydOHL1RcdD0tLWcv78PV/o4zNpOspQeU3MwI54X3dEt bSJMrVCvsd8CNpMkZCASAK0KqLfYTx3ikyp9lMGvGKLIsQeoh7bfkNWbz8/RKs5Zo/Ps xHEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=WlQMzQja; 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 142si840899pgf.35.2019.06.27.10.40.32; Thu, 27 Jun 2019 10:40:48 -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=WlQMzQja; 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 S1727037AbfF0Rk1 (ORCPT + 99 others); Thu, 27 Jun 2019 13:40:27 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36159 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726508AbfF0Rk0 (ORCPT ); Thu, 27 Jun 2019 13:40:26 -0400 Received: by mail-pf1-f196.google.com with SMTP id r7so1592234pfl.3 for ; Thu, 27 Jun 2019 10:40:26 -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=FR72I8Co0+MJGxYGED+5/dqb9dBV7h2vnmoy22KZs5Q=; b=WlQMzQjaD6Aa5Vpx6UqUNwQtzaS+/ZnzexxXnYOYG0W1PYAgkbHfE2fYWoFKiBP7Zh LEPR/SVzaF7l+Q0m/o+UQebDcRzFIfpgkyImNv/KS4nJvxOsSaAT7aN30UUxwZLvkXsZ S9TZz5Czs4+GdrWidNougIDcp9M3vrswqrYypZU7hhTfV/t60PFVpiIsb9HBmx5S6jHd XYri7Ee2gAkIhLJZTONReWvn31bZfWiomRHF24DigS8uElaw1RZfJHUfP4/QS8fFGm3R OfXHhpgZfeWICB17eszaHC1hpsNgliz4hxuW3YOWDqR0CZKbTCr1WzSwm8Hs3BR1Oq1K EqOQ== 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=FR72I8Co0+MJGxYGED+5/dqb9dBV7h2vnmoy22KZs5Q=; b=FsYAMYWmosxmcznTIXcF87lcKKfSOUtBREO/Vmv2GdSAVyuVcNJ+5bvsgwUEDof8VQ SLEr+rClESp3F9sV/qhNymXp333mrlLiBYJR6OYASgHuRgmMH///fZSagmq6TGK6Yu9Z hvDfLPv0ga23DOJDo9Zb1otdVyWUppzejAg8GgammH7efZbN04GnqeesLiP7GWHIm1WC BdqBq0llbiYKQdkI0GXk9pihzpM8TrU6c0qVULa4LRbLYyvBBSVDIFG8944QiGH3VKpe ghh/wOnmDFX9v8ElYK1vHQaA6bOszz3y4x/PDP4pNJc6xjr+IOw4CVtSLYyRLxdCqakF KdGw== X-Gm-Message-State: APjAAAXFlECeIY2EYpldteH/bFsKOB1R5TUfV4vWrJ12S16UH5ubPhxl kPn3/uaAAxJ0gpuAhINqczM= X-Received: by 2002:a17:90a:9f08:: with SMTP id n8mr7522337pjp.102.1561657226195; Thu, 27 Jun 2019 10:40:26 -0700 (PDT) Received: from hfq-skylake.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.googlemail.com with ESMTPSA id o95sm1727758pjb.4.2019.06.27.10.40.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 10:40:25 -0700 (PDT) From: Fuqian Huang Cc: Fuqian Huang , Jaroslav Kysela , Takashi Iwai , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Thomas Gleixner , Greg Kroah-Hartman , Rob Herring , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 41/87] sound: ppc: remove memset after dma_alloc_coherent Date: Fri, 28 Jun 2019 01:40:17 +0800 Message-Id: <20190627174018.4015-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 --- sound/ppc/pmac.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c index 1b11e53f6a62..1ab12f4f8631 100644 --- a/sound/ppc/pmac.c +++ b/sound/ppc/pmac.c @@ -56,7 +56,6 @@ static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, i if (rec->space == NULL) return -ENOMEM; rec->size = size; - memset(rec->space, 0, rsize); rec->cmds = (void __iomem *)DBDMA_ALIGN(rec->space); rec->addr = rec->dma_base + (unsigned long)((char *)rec->cmds - (char *)rec->space); -- 2.11.0