mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
[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: //<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>
This commit is contained in:
parent
e295b3d603
commit
b292394d4f
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue