From patchwork Fri Jun 28 02:50:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fuqian Huang X-Patchwork-Id: 11021221 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BDE8A76 for ; Fri, 28 Jun 2019 02:50:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D57E1FF81 for ; Fri, 28 Jun 2019 02:50:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E14728775; Fri, 28 Jun 2019 02:50:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A4C1286E5 for ; Fri, 28 Jun 2019 02:50:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726741AbfF1Cu2 (ORCPT ); Thu, 27 Jun 2019 22:50:28 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:38175 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726441AbfF1Cu1 (ORCPT ); Thu, 27 Jun 2019 22:50:27 -0400 Received: by mail-pf1-f195.google.com with SMTP id y15so2198006pfn.5; Thu, 27 Jun 2019 19:50:27 -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=2vqCu+MS+Img9r2z6/QFX/3aEGn5jsBEl1RMM1fPhso=; b=qeAMWzlrKSDx6Q/RRzQ4353QIEhM0VyBhhUnC1wyQkMGls5gBSuviEwbJazRlOBTMP jwC4bCg5bzKqWjBFjptrl6tQ9iA3S2OVKq9bsy9faiLXvEq8GzGjxXeZjB9Ny80MKKDN W8vOwnepdtxDJJ2rBZr8LsrUAqitVJRvvLFH9r8C1PLGYYelNJnQlEkTq1EdzQZMbr4H p4o1N2hPPhSX0v/QDs3dLY4oowijenSWg3AK/mE8AwoJ4runi7BvLowlsBYFcfSF2FmW tuSQok5Nuj+3gkv9ipd0BPVc0vG53orNw/I2GbCrOb//PPOBDRFNhQ0bP+kidjA6+esn cZnA== 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=2vqCu+MS+Img9r2z6/QFX/3aEGn5jsBEl1RMM1fPhso=; b=d/0TeO8SThTeX2ugxUwyKeTlqa+vwxULsDzbRXDDyLVfDsQEQhlBqkf8GQzj+didMs KhOaih8vp4pCxUVVwuoINgBIgtjyku2ADhtVW33Wuor8/ULfgZ+XRtdmZ8ncPoi+5wRr W+qC8dH45tZWZzqeT1Amq+LYOLp7aNvwf4EbEFGQZ2qGqtrxpthh2y/Q31bdogIIC4lE O+QxxBAjRlOAU2yBbOWYPAB/XbBLuALZh85jpnWkcSgUejl/eUhMgIcKrPHKXarVP3pX 8pC2h8+XeJ7eZf+TpKJOnODM0WXFEr6intywl+qdfi1ERjqdgyLx0mXXpqveNTX54e9+ AKUA== X-Gm-Message-State: APjAAAV0PrA0o1xA2Tf8fG5wZ0+04PnrxlozuFJ1Di0zXdGfKGbMBqvv ntF/08jq8kTp5TZRLBDB5Wc= X-Google-Smtp-Source: APXvYqxOMn3XXjIavfVVVOqWwhv7qSskxdyUtP1LwXecHil9rj6KtvpibgLg5zqF2qKy3hz2y5R0Rw== X-Received: by 2002:a17:90a:2768:: with SMTP id o95mr10104027pje.37.1561690227303; Thu, 27 Jun 2019 19:50:27 -0700 (PDT) Received: from hfq-skylake.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.googlemail.com with ESMTPSA id b37sm551587pjc.15.2019.06.27.19.50.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 19:50:26 -0700 (PDT) From: Fuqian Huang Cc: Fuqian Huang , Bartlomiej Zolnierkiewicz , Greg Kroah-Hartman , Thomas Gleixner , Allison Randal , Jilayne Lovejoy , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 23/27] video: fbdev: remove unneeded memset after dma_alloc_coherent Date: Fri, 28 Jun 2019 10:50:17 +0800 Message-Id: <20190628025019.16026-1-huangfq.daxian@gmail.com> X-Mailer: git-send-email 2.11.0 To: unlisted-recipients:; (no To-header on input) Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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/video/fbdev/mmp/fb/mmpfb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/mmp/fb/mmpfb.c b/drivers/video/fbdev/mmp/fb/mmpfb.c index e5b56f2199df..47bc7c59bbd8 100644 --- a/drivers/video/fbdev/mmp/fb/mmpfb.c +++ b/drivers/video/fbdev/mmp/fb/mmpfb.c @@ -612,7 +612,6 @@ static int mmpfb_probe(struct platform_device *pdev) ret = -ENOMEM; goto failed_destroy_mutex; } - memset(fbi->fb_start, 0, fbi->fb_size); dev_info(fbi->dev, "fb %dk allocated\n", fbi->fb_size/1024); /* fb power on */