From: Amitoj Kaur Chawla Date: Tue, 26 Jan 2016 18:39:14 +0000 (-0200) Subject: [media] media: platform: vivid: vivid-osd: Remove unnecessary cast to kfree X-Git-Tag: v5.15~14034^2^2~210 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b292394d4f1909ecad42150bf8782c3000d101b7;p=platform%2Fkernel%2Flinux-starfive.git [media] media: platform: vivid: vivid-osd: Remove unnecessary cast to kfree Remove an unnecassary cast in the argument to kfree. Found using Coccinelle. The semantic patch used to find this is as follows: // @@ type T; expression *f; @@ - kfree((T *)(f)); + kfree(f); // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/vivid/vivid-osd.c b/drivers/media/platform/vivid/vivid-osd.c index e15eef6..bdc380b 100644 --- a/drivers/media/platform/vivid/vivid-osd.c +++ b/drivers/media/platform/vivid/vivid-osd.c @@ -360,7 +360,7 @@ void vivid_fb_release_buffers(struct vivid_dev *dev) /* Release pseudo palette */ kfree(dev->fb_info.pseudo_palette); - kfree((void *)dev->video_vbase); + kfree(dev->video_vbase); } /* Initialize the specified card */