提交 925343ec 编写于 作者: J Jesper Juhl 提交者: Mauro Carvalho Chehab

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: NJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 409d84f8
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册