Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB: dvb-core: remove unnecessary casting of kmalloc

drivers/media/dvb/dvb-core/dvb_frontend.c | 6 ++----

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Thiago Farina and committed by
Mauro Carvalho Chehab
6e3924aa cebedf15

+2 -4
+2 -4
drivers/media/dvb/dvb-core/dvb_frontend.c
··· 1536 1536 if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS)) 1537 1537 return -EINVAL; 1538 1538 1539 - tvp = (struct dtv_property *) kmalloc(tvps->num * 1540 - sizeof(struct dtv_property), GFP_KERNEL); 1539 + tvp = kmalloc(tvps->num * sizeof(struct dtv_property), GFP_KERNEL); 1541 1540 if (!tvp) { 1542 1541 err = -ENOMEM; 1543 1542 goto out; ··· 1568 1569 if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS)) 1569 1570 return -EINVAL; 1570 1571 1571 - tvp = (struct dtv_property *) kmalloc(tvps->num * 1572 - sizeof(struct dtv_property), GFP_KERNEL); 1572 + tvp = kmalloc(tvps->num * sizeof(struct dtv_property), GFP_KERNEL); 1573 1573 if (!tvp) { 1574 1574 err = -ENOMEM; 1575 1575 goto out;