mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +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
1 changed files with 1 additions and 1 deletions
|
@ -708,7 +708,7 @@ static int vino_allocate_buffer(struct vino_framebuffer *fb,
|
||||||
size, count);
|
size, count);
|
||||||
|
|
||||||
/* allocate memory for table with virtual (page) addresses */
|
/* 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);
|
kmalloc(count * sizeof(unsigned long), GFP_KERNEL);
|
||||||
if (!fb->desc_table.virtual)
|
if (!fb->desc_table.virtual)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
Loading…
Reference in a new issue