This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-dvb.git tree:

Subject: V4L/DVB: smscoreapi/w9968cf: drivers/media: Remove unnecesary kmalloc 
casts
Author:  Joe Perches <[email protected]>
Date:    Tue Jun 29 01:29:29 2010 -0300

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Douglas Schilling Landgraf <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/dvb/siano/smscoreapi.c |    4 +---
 drivers/media/video/w9968cf.c        |    3 +--
 2 files changed, 2 insertions(+), 5 deletions(-)

---

http://git.linuxtv.org/v4l-dvb.git?a=commitdiff;h=b662d177ad7fd5c468222c392dd6b1f0e02aaa74

diff --git a/drivers/media/dvb/siano/smscoreapi.c 
b/drivers/media/dvb/siano/smscoreapi.c
index 0c87a3c..828bcc2 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 d807eea..591fc6d 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;
 

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to