Skip to content

Commit

Permalink
V4L/DVB (6102): dvb: remove some unneeded vmalloc() return value cast…
Browse files Browse the repository at this point in the history
…s 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>
  • Loading branch information
Jesper Juhl authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 71be258 commit d9bf2c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/media/dvb/ttpci/av7110.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb/ttpci/av7110_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d9bf2c0

Please sign in to comment.