drm/mediatek: Remove freeing not dynamic allocated memory
authorJason-JH.Lin <jason-jh.lin@mediatek.com>
Fri, 14 Jul 2023 09:49:05 +0000 (17:49 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 10 Aug 2023 23:46:17 +0000 (23:46 +0000)
commit27b9e2ea3f2757da26bb8280e46f7fdbb1acb219
tree5bd9c19b29663d693eec8e5c81abe2a372a1d543
parentb3af12a0b46888340e024ba8b231605bcf2d0ab3
drm/mediatek: Remove freeing not dynamic allocated memory

Fixing the coverity issue of:
mtk_drm_cmdq_pkt_destroy frees address of mtk_crtc->cmdq_handle

So remove the free function.

Fixes: 7627122fd1c0 ("drm/mediatek: Add cmdq_handle in mtk_crtc")
Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20230714094908.13087-2-jason-jh.lin@mediatek.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_crtc.c