diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2007-08-25 10:23:54 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:06:57 -0400 |
commit | d9bf2c037754f1493323829048d6210602712a43 (patch) | |
tree | 0176609c95a0bf775fa53387872306ca82f47487 | |
parent | 71be258bd9bf41ca3060021f2ed50ad8c672a01e (diff) |
V4L/DVB (6102): dvb: remove some unneeded vmalloc() return value casts from av7110
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/dvb/ttpci/av7110.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/av7110_ir.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c index aecfdeb8ec43..8b8144f77a73 100644 --- a/drivers/media/dvb/ttpci/av7110.c +++ b/drivers/media/dvb/ttpci/av7110.c | |||
@@ -1542,7 +1542,7 @@ static int get_firmware(struct av7110* av7110) | |||
1542 | } | 1542 | } |
1543 | 1543 | ||
1544 | /* check if the firmware is available */ | 1544 | /* check if the firmware is available */ |
1545 | av7110->bin_fw = (unsigned char *) vmalloc(fw->size); | 1545 | av7110->bin_fw = vmalloc(fw->size); |
1546 | if (NULL == av7110->bin_fw) { | 1546 | if (NULL == av7110->bin_fw) { |
1547 | dprintk(1, "out of memory\n"); | 1547 | dprintk(1, "out of memory\n"); |
1548 | release_firmware(fw); | 1548 | release_firmware(fw); |
diff --git a/drivers/media/dvb/ttpci/av7110_ir.c b/drivers/media/dvb/ttpci/av7110_ir.c index e8f553719bc5..5d19c402dad1 100644 --- a/drivers/media/dvb/ttpci/av7110_ir.c +++ b/drivers/media/dvb/ttpci/av7110_ir.c | |||
@@ -279,7 +279,7 @@ static int av7110_ir_write_proc(struct file *file, const char __user *buffer, | |||
279 | if (count < size) | 279 | if (count < size) |
280 | return -EINVAL; | 280 | return -EINVAL; |
281 | 281 | ||
282 | page = (char *) vmalloc(size); | 282 | page = vmalloc(size); |
283 | if (!page) | 283 | if (!page) |
284 | return -ENOMEM; | 284 | return -ENOMEM; |
285 | 285 | ||