diff options
author | Thiago Farina <tfransosi@gmail.com> | 2010-01-16 08:25:38 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:46 -0500 |
commit | 6e3924aa8dad3ac7d5cbfb4e27b6cdd2dc7b7e68 (patch) | |
tree | 18b7a97d63bcf4cd3df85c5f6857c79902841c13 | |
parent | cebedf15d2776e1629a86260b5aa7bcfff8401b2 (diff) |
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>
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_frontend.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c index ca2060e04395..55ea260572bf 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb/dvb-core/dvb_frontend.c | |||
@@ -1536,8 +1536,7 @@ static int dvb_frontend_ioctl_properties(struct inode *inode, struct file *file, | |||
1536 | if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS)) | 1536 | if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS)) |
1537 | return -EINVAL; | 1537 | return -EINVAL; |
1538 | 1538 | ||
1539 | tvp = (struct dtv_property *) kmalloc(tvps->num * | 1539 | tvp = kmalloc(tvps->num * sizeof(struct dtv_property), GFP_KERNEL); |
1540 | sizeof(struct dtv_property), GFP_KERNEL); | ||
1541 | if (!tvp) { | 1540 | if (!tvp) { |
1542 | err = -ENOMEM; | 1541 | err = -ENOMEM; |
1543 | goto out; | 1542 | goto out; |
@@ -1569,8 +1568,7 @@ static int dvb_frontend_ioctl_properties(struct inode *inode, struct file *file, | |||
1569 | if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS)) | 1568 | if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS)) |
1570 | return -EINVAL; | 1569 | return -EINVAL; |
1571 | 1570 | ||
1572 | tvp = (struct dtv_property *) kmalloc(tvps->num * | 1571 | tvp = kmalloc(tvps->num * sizeof(struct dtv_property), GFP_KERNEL); |
1573 | sizeof(struct dtv_property), GFP_KERNEL); | ||
1574 | if (!tvp) { | 1572 | if (!tvp) { |
1575 | err = -ENOMEM; | 1573 | err = -ENOMEM; |
1576 | goto out; | 1574 | goto out; |