[<prev] [next>] [day] [month] [year] [list]
Message-Id: <df026c2dfeb096dbf551025bae2a4da395dad38e.1639602203.git.christophe.jaillet@wanadoo.fr>
Date: Wed, 15 Dec 2021 22:04:20 +0100
From: Christophe JAILLET <christophe.jaillet@...adoo.fr>
To: tomba@...nel.org, airlied@...ux.ie, daniel@...ll.ch
Cc: dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org,
Christophe JAILLET <christophe.jaillet@...adoo.fr>
Subject: [PATCH] drm/omapdrm: Remove a useless bitmap_clear() call
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 <christophe.jaillet@...adoo.fr>
---
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;
--
2.30.2
Powered by blists - more mailing lists