Skip to content

Commit

Permalink
V4L/DVB: smscoreapi/w9968cf: drivers/media: Remove unnecesary kmalloc…
Browse files Browse the repository at this point in the history
… casts

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>
  • Loading branch information
Joe Perches authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent e23fb96 commit 806ec0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions drivers/media/dvb/siano/smscoreapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions drivers/media/video/w9968cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 806ec0f

Please sign in to comment.