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)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 24 Oct 2019 12:12:21 +0000 (14:12 +0200)
commit2ec35bd21d3290c8f76020dc60503deacd18e24b
treef958b4fd3f3b5a3ad3667ea48b48206c96d2218d
parent62db7d1e1ef125be9706541c2606c6259138e898
drm/mediatek: remove cast to pointers passed to kfree

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
drivers/gpu/drm/mediatek/mtk_drm_gem.c