]> err.no Git - linux-2.6/commitdiff
V4L/DVB (6285): Remove pointless kmalloc() return value cast in Zoran PCI controller...
authorJesper Juhl <jesper.juhl@gmail.com>
Fri, 24 Aug 2007 00:22:15 +0000 (21:22 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 03:03:09 +0000 (00:03 -0300)
No need to cast the void pointer returned by kmalloc() in
drivers/media/video/zoran_driver.c::v4l_fbuffer_alloc().

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/zoran_driver.c

index d831ca16d9e998eb464db06992a955cbc8fd6578..1c14fa2bd4115623de441807e76688133f6664f3 100644 (file)
@@ -339,10 +339,7 @@ v4l_fbuffer_alloc (struct file *file)
                if (fh->v4l_buffers.buffer_size <= MAX_KMALLOC_MEM) {
                        /* Use kmalloc */
 
-                       mem =
-                           (unsigned char *) kmalloc(fh->v4l_buffers.
-                                                     buffer_size,
-                                                     GFP_KERNEL);
+                       mem = kmalloc(fh->v4l_buffers.buffer_size, GFP_KERNEL);
                        if (mem == 0) {
                                dprintk(1,
                                        KERN_ERR