V4L/DVB: dvb-core: remove unnecessary casting of kmalloc
authorThiago Farina <tfransosi@gmail.com>
Sat, 16 Jan 2010 13:25:38 +0000 (10:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:46 +0000 (15:10 -0300)
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>
drivers/media/dvb/dvb-core/dvb_frontend.c

index ca2060e043951b1668e3e7a2b058183df9a76fae..55ea260572bf576319fe5a299f5e19341bcf0df1 100644 (file)
@@ -1536,8 +1536,7 @@ static int dvb_frontend_ioctl_properties(struct inode *inode, struct file *file,
                if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS))
                        return -EINVAL;
 
-               tvp = (struct dtv_property *) kmalloc(tvps->num *
-                       sizeof(struct dtv_property), GFP_KERNEL);
+               tvp = kmalloc(tvps->num * sizeof(struct dtv_property), GFP_KERNEL);
                if (!tvp) {
                        err = -ENOMEM;
                        goto out;
@@ -1569,8 +1568,7 @@ static int dvb_frontend_ioctl_properties(struct inode *inode, struct file *file,
                if ((tvps->num == 0) || (tvps->num > DTV_IOCTL_MAX_MSGS))
                        return -EINVAL;
 
-               tvp = (struct dtv_property *) kmalloc(tvps->num *
-                       sizeof(struct dtv_property), GFP_KERNEL);
+               tvp = kmalloc(tvps->num * sizeof(struct dtv_property), GFP_KERNEL);
                if (!tvp) {
                        err = -ENOMEM;
                        goto out;