diff options
author | Joe Perches <joe@perches.com> | 2010-06-29 00:29:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 14:00:41 -0400 |
commit | 806ec0fb561b0384f1da6932960643786eac8ec6 (patch) | |
tree | 496256e1e3a54cc2d1a981f200003f7a475248e4 /drivers | |
parent | e23fb9643bd440fee9106e6df76f01a57db2613c (diff) |
V4L/DVB: smscoreapi/w9968cf: drivers/media: Remove unnecesary kmalloc 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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/siano/smscoreapi.c | 4 | ||||
-rw-r--r-- | drivers/media/video/w9968cf.c | 3 |
2 files changed, 2 insertions, 5 deletions
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) | |||
116 | return entry; | 116 | return entry; |
117 | } | 117 | } |
118 | } | 118 | } |
119 | entry = (struct smscore_registry_entry_t *) | 119 | entry = kmalloc(sizeof(struct smscore_registry_entry_t), GFP_KERNEL); |
120 | kmalloc(sizeof(struct smscore_registry_entry_t), | ||
121 | GFP_KERNEL); | ||
122 | if (entry) { | 120 | if (entry) { |
123 | entry->mode = default_mode; | 121 | entry->mode = default_mode; |
124 | strcpy(entry->devpath, devpath); | 122 | 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) | |||
3429 | else | 3429 | else |
3430 | return -ENODEV; | 3430 | return -ENODEV; |
3431 | 3431 | ||
3432 | cam = (struct w9968cf_device*) | 3432 | cam = kzalloc(sizeof(struct w9968cf_device), GFP_KERNEL); |
3433 | kzalloc(sizeof(struct w9968cf_device), GFP_KERNEL); | ||
3434 | if (!cam) | 3433 | if (!cam) |
3435 | return -ENOMEM; | 3434 | return -ENOMEM; |
3436 | 3435 | ||