Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=925343ecdfd3f1dafd1049ddd4944621bbe3422e
Commit:     925343ecdfd3f1dafd1049ddd4944621bbe3422e
Parent:     409d84f85a8d523ecd108cbe2c0e722682da95ff
Author:     Jesper Juhl <[EMAIL PROTECTED]>
AuthorDate: Thu Aug 23 21:22:15 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 00:03:09 2007 -0300

    V4L/DVB (6285): Remove pointless kmalloc() return value cast in Zoran PCI 
controller driver
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/zoran_driver.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/drivers/media/video/zoran_driver.c 
b/drivers/media/video/zoran_driver.c
index d831ca1..1c14fa2 100644
--- a/drivers/media/video/zoran_driver.c
+++ b/drivers/media/video/zoran_driver.c
@@ -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
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to