summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Endriss <o.endriss@gmx.de>2007-08-25 16:23:54 +0200
committerOliver Endriss <o.endriss@gmx.de>2007-08-25 16:23:54 +0200
commitf7d0a5848cb40da774558ed8eb5677fd380fc727 (patch)
tree88ea0d50ec8d314c55868122f29c7fc8bbcb111e
parent273e7c4cd9ac05feae0d9d31f3c52db75485a378 (diff)
downloadmediapointer-dvb-s2-f7d0a5848cb40da774558ed8eb5677fd380fc727.tar.gz
mediapointer-dvb-s2-f7d0a5848cb40da774558ed8eb5677fd380fc727.tar.bz2
[PATCH 24/30] dvb: remove some unneeded vmalloc() return value casts from av7110
From: Jesper Juhl <jesper.juhl@gmail.com> vmalloc() returns void * - no need to cast it. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.c2
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110_ir.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c
index 8d4589c3f..c32235571 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.c
+++ b/linux/drivers/media/dvb/ttpci/av7110.c
@@ -1542,7 +1542,7 @@ static int get_firmware(struct av7110* av7110)
}
/* check if the firmware is available */
- av7110->bin_fw = (unsigned char *) vmalloc(fw->size);
+ av7110->bin_fw = vmalloc(fw->size);
if (NULL == av7110->bin_fw) {
dprintk(1, "out of memory\n");
release_firmware(fw);
diff --git a/linux/drivers/media/dvb/ttpci/av7110_ir.c b/linux/drivers/media/dvb/ttpci/av7110_ir.c
index 57831e7f1..be0fa967d 100644
--- a/linux/drivers/media/dvb/ttpci/av7110_ir.c
+++ b/linux/drivers/media/dvb/ttpci/av7110_ir.c
@@ -279,7 +279,7 @@ static int av7110_ir_write_proc(struct file *file, const char __user *buffer,
if (count < size)
return -EINVAL;
- page = (char *) vmalloc(size);
+ page = vmalloc(size);
if (!page)
return -ENOMEM;