drm/mediatek: mtk_drm_plane: Use kmalloc in mtk_plane_duplicate_state
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 18 Jan 2022 13:37:58 +0000 (14:37 +0100)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Tue, 5 Apr 2022 22:27:23 +0000 (06:27 +0800)
commitd327bc37c16a9c55e7d243ada2a58ba764e2bc58
tree1cde1f03ddfa4da06ae63793feb91cf69ce7fba5
parent3123109284176b1532874591f7c81f3837bbdc17
drm/mediatek: mtk_drm_plane: Use kmalloc in mtk_plane_duplicate_state

There is no need to zero out the newly allocated memory because we are
duplicating all members of struct mtk_plane_state: switch to kmalloc
to save some overhead.

Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20220118133759.112458-1-angelogioacchino.delregno@collabora.com/
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_plane.c