summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-08-24 02:22:15 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-08-24 02:22:15 +0200
commitc6b0ed825a97018278bf4d3e8c30bb2e5f9bbaef (patch)
tree4a40fd4b78733eb99a45116b2cbf163e9787d6fb /linux
parentfe5ebb885c12dbe24c8637eefd191572431bbf2b (diff)
downloadmediapointer-dvb-s2-c6b0ed825a97018278bf4d3e8c30bb2e5f9bbaef.tar.gz
mediapointer-dvb-s2-c6b0ed825a97018278bf4d3e8c30bb2e5f9bbaef.tar.bz2
Remove pointless kmalloc() return value cast in Zoran PCI controller driver
From: Jesper Juhl <jesper.juhl@gmail.com> 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 'linux')
-rw-r--r--linux/drivers/media/video/zoran_driver.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/linux/drivers/media/video/zoran_driver.c b/linux/drivers/media/video/zoran_driver.c
index 063b21ffd..22df04195 100644
--- a/linux/drivers/media/video/zoran_driver.c
+++ b/linux/drivers/media/video/zoran_driver.c
@@ -353,10 +353,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