]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
V4L/DVB: smscoreapi/w9968cf: drivers/media: Remove unnecesary kmalloc casts
authorJoe Perches <joe@perches.com>
Tue, 29 Jun 2010 04:29:29 +0000 (01:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 18:00:41 +0000 (15:00 -0300)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/siano/smscoreapi.c
drivers/media/video/w9968cf.c

index 0c87a3c3899ada10eceee75b0cd2ec07be1030fc..828bcc2e129be683bf6c9d872d3d65424c1a33d9 100644 (file)
@@ -116,9 +116,7 @@ static struct smscore_registry_entry_t *smscore_find_registry(char *devpath)
                        return entry;
                }
        }
-       entry = (struct smscore_registry_entry_t *)
-                       kmalloc(sizeof(struct smscore_registry_entry_t),
-                               GFP_KERNEL);
+       entry = kmalloc(sizeof(struct smscore_registry_entry_t), GFP_KERNEL);
        if (entry) {
                entry->mode = default_mode;
                strcpy(entry->devpath, devpath);
index d807eea9175783a0e9b57610e9b6ba095c83c6f1..591fc6db48fbf0bbef59a48de2fb5d40fa97065c 100644 (file)
@@ -3429,8 +3429,7 @@ w9968cf_usb_probe(struct usb_interface* intf, const struct usb_device_id* id)
        else
                return -ENODEV;
 
-       cam = (struct w9968cf_device*)
-                 kzalloc(sizeof(struct w9968cf_device), GFP_KERNEL);
+       cam = kzalloc(sizeof(struct w9968cf_device), GFP_KERNEL);
        if (!cam)
                return -ENOMEM;