Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2783990ybd; Thu, 27 Jun 2019 19:52:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqVl6qPlXK4/ukio48ecp1qXg35PdJUIE+W0clacAs4/Y4vrFdxuKxv6JNtScL34SEAP7C X-Received: by 2002:a17:902:24a2:: with SMTP id w31mr8825932pla.324.1561690355199; Thu, 27 Jun 2019 19:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561690355; cv=none; d=google.com; s=arc-20160816; b=TyHNDTO0h7qp2H7KNlh8t6AI/rIH3AWbZ5g1pipdHpbSxN3ztN6L05C567BvZVSZgo RizOLk2wxe79qT8dZ07KaxdwKIN125yzGRQKrZ38D/mt9IfsWWtL2LtNabdzPsCeB7gf V77OqCz6B1ATbU2koM8B4z8/G2JtemzjKnFMO7Sg6oVr7aLFGpnUyv20G1cToHBxaex3 X4guMSI5FZ1K79iv8giAi02atFIDS66OR/KPb4SQZe2bg5k9lvZcMxOwtcVj6HZlUhPh OOsIz7p2+RPAqm0jIxZGzi3K189/UneYfvmLW7zEwretUy79XobY1zu3B1VgwOf2Bbs6 BP8A== 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=zXUo/4wuD168oZfV+4SHfwmhV4YcyBgRYDGF7Q4jejpc+p0Zn3NTwm7uow35BkNdVn CbbnW9sttVpOzTPMq5sOsQ8wVzvnMZZ2+zCOCXkQ3cGixdOhNuV+vup+JvFRU1QTaE7A PJygpjEPwQPSYJKRgfM5OxXcf1S+vuQ//MRLqJn0Q+/nUCltRON30gXYL7/Tn7sbWyIl wTavuh4EzjyWsLO1OuLUxyjIDhDHii6xjn989J2Gz7C48rNv/MjxjeCD5pwLmjP061rO r4zNSfPppJsZck6XIzwdHRCsJbXvWYAqM1xoNMSLef5651WpH12NRz95mcE2h/bN+G2m o0cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=IhxJ2cyQ; 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 bc7si811053plb.55.2019.06.27.19.52.19; Thu, 27 Jun 2019 19:52:35 -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=IhxJ2cyQ; 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 S1726983AbfF1CvD (ORCPT + 99 others); Thu, 27 Jun 2019 22:51:03 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:37944 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726441AbfF1CvD (ORCPT ); Thu, 27 Jun 2019 22:51:03 -0400 Received: by mail-pl1-f194.google.com with SMTP id 9so1585829ple.5 for ; Thu, 27 Jun 2019 19:51:03 -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=IhxJ2cyQo1/nvunCFvFfS0lEbh/0091c04NKKkhNShMj9sWqyfADIGoFXQl05TpjYZ 7j9A1FXpIIEdEwYze1FTKINBI27EiSaozaS7oQ9bNK1BFztQRxa22TtkmWEFmUKAQ+ZB Nzy0w3v1kP9zev1mkPZoA9lp3fLcgU4t6y3NmEjraSL8V+oHQ6LknVwFeNHupu+NLP73 Q8YBHbhPZtOVyBiwviEQHq0703WzQ6nsqSlyYrcGslLgXO3uwcIsdDebNOqrEuhe0uPS 29oPRFdsznFFLxhrSOb7M5UCeR5+K1sx5WNlxrRdHaRg5YW1mkMs3kIi/offf8HJ0AZ8 ngdA== 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=rj1gcqm7F+5yh+zJZd3nTapILy0PE09F1217YbJaWnn7PYICiJAOaz0orvSJCHWV0I yHkHw9R0SNOwNPuG6vOxfm9LuUFs1UhD51+fDCMyFZnjM2vDoN/AgQMSKgD4sPC97KvG Vq9tK0UZtG00V4yIWpb75I5mUE66p0AuCg7TT7KVUXpRpARU7GVKDfcr605FPW320S4+ 6mSyZCxFPoJrku7nDk8LZUc2V02/ZFLiR+yQrzfyP4k0lSktnxiq/Lx7dE8MQ8+cZB49 P8nlvWwl2bz3JcRQXM39INsK0B1CjXwEMy7PmCXJObPT8ES4orA+V3WkSLOR+eh50rjp /RrA== X-Gm-Message-State: APjAAAWlW8+jwC6VunRkA+aJRG14btg2V38Mqt305XUI2dQRRd18u56q C03DjLRtGkXSJSSoNnkzRxs= X-Received: by 2002:a17:902:868f:: with SMTP id g15mr8558096plo.67.1561690262921; Thu, 27 Jun 2019 19:51:02 -0700 (PDT) Received: from hfq-skylake.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.googlemail.com with ESMTPSA id b1sm457294pfi.91.2019.06.27.19.50.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 19:51:02 -0700 (PDT) From: Fuqian Huang Cc: Fuqian Huang , Jaroslav Kysela , Takashi Iwai , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Rob Herring , Allison Randal , Greg Kroah-Hartman , Richard Fontana , Thomas Gleixner , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 27/27] sound: ppc: remove unneeded memset after dma_alloc_coherent Date: Fri, 28 Jun 2019 10:50:54 +0800 Message-Id: <20190628025055.16242-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