summaryrefslogtreecommitdiff
path: root/drivers/media/video
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2007-08-24 00:22:15 (GMT)
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-10 03:03:09 (GMT)
commit925343ecdfd3f1dafd1049ddd4944621bbe3422e (patch)
treed37c22eb6055d579da1858bc2ee13e7daf1c6d94 /drivers/media/video
parent409d84f85a8d523ecd108cbe2c0e722682da95ff (diff)
downloadlinux-fsl-qoriq-925343ecdfd3f1dafd1049ddd4944621bbe3422e.tar.xz
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>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/zoran_driver.c5
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