Skip to content

Commit

Permalink
V4L/DVB (6285): Remove pointless kmalloc() return value cast in Zoran…
Browse files Browse the repository at this point in the history
… 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>
  • Loading branch information
Jesper Juhl authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 409d84f commit 925343e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/media/video/zoran_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 925343e

Please sign in to comment.