Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9bf2c03 authored by Jesper Juhl's avatar Jesper Juhl Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (6102): dvb: remove some unneeded vmalloc() return value casts from av7110



vmalloc() returns void * - no need to cast it.

Signed-off-by: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarOliver Endriss <o.endriss@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 71be258b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -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;