Skip to content

Commit

Permalink
[media] media: platform: vivid: vivid-osd: Remove unnecessary cast to…
Browse files Browse the repository at this point in the history
… kfree

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>
  • Loading branch information
Amitoj Kaur Chawla authored and Mauro Carvalho Chehab committed Feb 10, 2016
1 parent e295b3d commit b292394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/vivid/vivid-osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b292394

Please sign in to comment.