[media] media: platform: vivid: vivid-osd: Remove unnecessary cast to kfree
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Tue, 26 Jan 2016 18:39:14 +0000 (16:39 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 10 Feb 2016 11:29:02 +0000 (09:29 -0200)
Remove an unnecassary cast in the argument to kfree.

Found using Coccinelle. The semantic patch used to find this is as follows:

//<smpl>
@@
type T;
expression *f;
@@

- kfree((T *)(f));
+ kfree(f);
//</smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-osd.c

index e15eef6a94e5585ad93a0dc81dcde54563f1aff6..bdc380b14e0c47e73461ded4b16d01cbf484ed2d 100644 (file)
@@ -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 */