提交 806ec0fb 编写于 作者: J Joe Perches 提交者: Mauro Carvalho Chehab

V4L/DVB: smscoreapi/w9968cf: drivers/media: Remove unnecesary kmalloc casts

Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NDouglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 e23fb964
...@@ -116,9 +116,7 @@ static struct smscore_registry_entry_t *smscore_find_registry(char *devpath) ...@@ -116,9 +116,7 @@ static struct smscore_registry_entry_t *smscore_find_registry(char *devpath)
return entry; return entry;
} }
} }
entry = (struct smscore_registry_entry_t *) entry = kmalloc(sizeof(struct smscore_registry_entry_t), GFP_KERNEL);
kmalloc(sizeof(struct smscore_registry_entry_t),
GFP_KERNEL);
if (entry) { if (entry) {
entry->mode = default_mode; entry->mode = default_mode;
strcpy(entry->devpath, devpath); strcpy(entry->devpath, devpath);
......
...@@ -3429,8 +3429,7 @@ w9968cf_usb_probe(struct usb_interface* intf, const struct usb_device_id* id) ...@@ -3429,8 +3429,7 @@ w9968cf_usb_probe(struct usb_interface* intf, const struct usb_device_id* id)
else else
return -ENODEV; return -ENODEV;
cam = (struct w9968cf_device*) cam = kzalloc(sizeof(struct w9968cf_device), GFP_KERNEL);
kzalloc(sizeof(struct w9968cf_device), GFP_KERNEL);
if (!cam) if (!cam)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册