Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Thomas Meyer and committed by
Mauro Carvalho Chehab
82c80f83 68dd9dd4

+1 -1
+1 -1
drivers/media/video/vino.c
··· 708 708 size, count); 709 709 710 710 /* allocate memory for table with virtual (page) addresses */ 711 - fb->desc_table.virtual = (unsigned long *) 711 + fb->desc_table.virtual = 712 712 kmalloc(count * sizeof(unsigned long), GFP_KERNEL); 713 713 if (!fb->desc_table.virtual) 714 714 return -ENOMEM;