From patchwork Wed Dec 15 21:04:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 12679439 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AE6DCC433EF for ; Wed, 15 Dec 2021 21:04:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B399C10E964; Wed, 15 Dec 2021 21:04:27 +0000 (UTC) Received: from smtp.smtpout.orange.fr (smtp10.smtpout.orange.fr [80.12.242.132]) by gabe.freedesktop.org (Postfix) with ESMTPS id 708E010E964 for ; Wed, 15 Dec 2021 21:04:26 +0000 (UTC) Received: from pop-os.home ([86.243.171.122]) by smtp.orange.fr with ESMTPA id xbRmmUOmyw2XxxbRmmRN4I; Wed, 15 Dec 2021 22:04:23 +0100 X-ME-Helo: pop-os.home X-ME-Auth: YWZlNiIxYWMyZDliZWIzOTcwYTEyYzlhMmU3ZiQ1M2U2MzfzZDfyZTMxZTBkMTYyNDBjNDJlZmQ3ZQ== X-ME-Date: Wed, 15 Dec 2021 22:04:23 +0100 X-ME-IP: 86.243.171.122 From: Christophe JAILLET To: tomba@kernel.org, airlied@linux.ie, daniel@ffwll.ch Subject: [PATCH] drm/omapdrm: Remove a useless bitmap_clear() call Date: Wed, 15 Dec 2021 22:04:20 +0100 Message-Id: X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christophe JAILLET , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The 'tcm->bitmap' is kzalloc'ed just a few lines above, at the same time as 'tcm'. There is no need to initialize it another time here. Remove the useless bitmap_clear() call. Signed-off-by: Christophe JAILLET --- drivers/gpu/drm/omapdrm/tcm-sita.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/omapdrm/tcm-sita.c b/drivers/gpu/drm/omapdrm/tcm-sita.c index fde0208ec01e..e2c7340c5ac4 100644 --- a/drivers/gpu/drm/omapdrm/tcm-sita.c +++ b/drivers/gpu/drm/omapdrm/tcm-sita.c @@ -239,7 +239,6 @@ struct tcm *sita_init(u16 width, u16 height) spin_lock_init(&tcm->lock); tcm->bitmap = (unsigned long *)(tcm + 1); - bitmap_clear(tcm->bitmap, 0, width*height); tcm->map_size = width*height;