V4L/DVB (6102): dvb: remove some unneeded vmalloc() return value casts from av7110
authorJesper Juhl <jesper.juhl@gmail.com>
Sat, 25 Aug 2007 14:23:54 +0000 (11:23 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:06:57 +0000 (22:06 -0300)
vmalloc() returns void * - no need to cast it.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/ttpci/av7110.c
drivers/media/dvb/ttpci/av7110_ir.c

index aecfdeb8ec4399d8db23d1d72c642635b1858d34..8b8144f77a739b7637ce5c9de526c199a3daf389 100644 (file)
@@ -1542,7 +1542,7 @@ static int get_firmware(struct av7110* av7110)
        }
 
        /* check if the firmware is available */
-       av7110->bin_fw = (unsigned char *) vmalloc(fw->size);
+       av7110->bin_fw = vmalloc(fw->size);
        if (NULL == av7110->bin_fw) {
                dprintk(1, "out of memory\n");
                release_firmware(fw);
index e8f553719bc51b472ebf5610d8384937c44258d7..5d19c402dad13fbf8096aa05147f28f684d93258 100644 (file)
@@ -279,7 +279,7 @@ static int av7110_ir_write_proc(struct file *file, const char __user *buffer,
        if (count < size)
                return -EINVAL;
 
-       page = (char *) vmalloc(size);
+       page = vmalloc(size);
        if (!page)
                return -ENOMEM;