mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 08:22:39 +00:00
[media] v4l: Casting (void *) value returned by kmalloc is useless
The semantic patch that makes this change is available in scripts/coccinelle/api/alloc/drop_kmalloc_cast.cocci. Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
68dd9dd411
commit
82c80f8371
@ -708,7 +708,7 @@ static int vino_allocate_buffer(struct vino_framebuffer *fb,
|
||||
size, count);
|
||||
|
||||
/* allocate memory for table with virtual (page) addresses */
|
||||
fb->desc_table.virtual = (unsigned long *)
|
||||
fb->desc_table.virtual =
|
||||
kmalloc(count * sizeof(unsigned long), GFP_KERNEL);
|
||||
if (!fb->desc_table.virtual)
|
||||
return -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user