lkml.org 
[lkml]   [2007]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 23/30] video: 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 <jesper.juhl@gmail.com>
    ---
    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 72a037b..bc2e5b3 100644
    --- a/drivers/media/video/zoran_driver.c
    +++ b/drivers/media/video/zoran_driver.c
    @@ -347,10 +347,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
    --
    1.5.2.2
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-08-24 02:27    [W:0.028 / U:60.364 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site