From: Joe Perches Date: Tue, 29 Jun 2010 04:29:29 +0000 (-0300) Subject: V4L/DVB: smscoreapi/w9968cf: drivers/media: Remove unnecesary kmalloc casts X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=806ec0fb561b0384f1da6932960643786eac8ec6;p=openwrt%2Fstaging%2Fblogic.git V4L/DVB: smscoreapi/w9968cf: drivers/media: Remove unnecesary kmalloc casts Signed-off-by: Joe Perches Signed-off-by: Douglas Schilling Landgraf Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c index 0c87a3c3899a..828bcc2e129b 100644 --- a/drivers/media/dvb/siano/smscoreapi.c +++ b/drivers/media/dvb/siano/smscoreapi.c @@ -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); diff --git a/drivers/media/video/w9968cf.c b/drivers/media/video/w9968cf.c index d807eea91757..591fc6db48fb 100644 --- a/drivers/media/video/w9968cf.c +++ b/drivers/media/video/w9968cf.c @@ -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;