aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2011-11-17 16:43:40 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-24 18:06:57 -0500
commit82c80f8371835f861bdbe50eefa5f49888d23210 (patch)
tree6b782cc9527460f2e5c2927fcfbbb556e80e84ff /drivers
parent68dd9dd4113a7d2bd329590091a3f97fee3fd659 (diff)
[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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/vino.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/vino.c b/drivers/media/video/vino.c
index 52a0a3736c82..4d7391ec8001 100644
--- a/drivers/media/video/vino.c
+++ b/drivers/media/video/vino.c
@@ -708,7 +708,7 @@ static int vino_allocate_buffer(struct vino_framebuffer *fb,
708 size, count); 708 size, count);
709 709
710 /* allocate memory for table with virtual (page) addresses */ 710 /* allocate memory for table with virtual (page) addresses */
711 fb->desc_table.virtual = (unsigned long *) 711 fb->desc_table.virtual =
712 kmalloc(count * sizeof(unsigned long), GFP_KERNEL); 712 kmalloc(count * sizeof(unsigned long), GFP_KERNEL);
713 if (!fb->desc_table.virtual) 713 if (!fb->desc_table.virtual)
714 return -ENOMEM; 714 return -ENOMEM;