]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mediatek: remove cast to pointers passed to kfree
authorWambui Karuga <wambui.karugax@gmail.com>
Wed, 23 Oct 2019 11:11:07 +0000 (14:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:43:46 +0000 (16:43 +0100)
commit3525cec472f8b05dd731a731a50db3b47e282e5d
tree233eb213db6e6646265448f142bad21fbbd4b999
parent36b17760c475a9e03dac34cdea4acfdf5cf02bc2
drm/mediatek: remove cast to pointers passed to kfree

[ Upstream commit 854d55820cdf19b167dd910446d950b5d0eeadef ]

Remove unnecessary casts to pointer types passed to kfree.
Issue detected by coccinelle:
@@
type t1;
expression *e;
@@

-kfree((t1 *)e);
+kfree(e);

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20191023111107.9972-1-wambui.karugax@gmail.com
Stable-dep-of: 4744cde06f57 ("drm/mediatek: Use NULL instead of 0 for NULL pointer")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_gem.c