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 <jesper.juhl@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
Jesper Juhl 2007-08-23 21:22:15 -03:00 committed by Mauro Carvalho Chehab
parent 409d84f85a
commit 925343ecdf
1 changed files with 1 additions and 4 deletions

View 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