diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2005-12-11 20:34:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-04 13:51:43 -0800 |
commit | 0e8eb0f06b21bc05c42bcdbb6b273fce59ba9689 (patch) | |
tree | 8f147c0484a46e4c4a488378a760da64c00057aa /drivers/usb/misc/auerswald.c | |
parent | 740a4282ed5cf0fbcad9a1a1660f24e1b5d11ed2 (diff) | |
download | linux-3.10-0e8eb0f06b21bc05c42bcdbb6b273fce59ba9689.tar.gz linux-3.10-0e8eb0f06b21bc05c42bcdbb6b273fce59ba9689.tar.bz2 linux-3.10-0e8eb0f06b21bc05c42bcdbb6b273fce59ba9689.zip |
[PATCH] USB: Remove unneeded kmalloc() return value casts
Remove kmalloc() return value casts that we don't need from
drivers/usb/*
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/misc/auerswald.c')
-rw-r--r-- | drivers/usb/misc/auerswald.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/misc/auerswald.c b/drivers/usb/misc/auerswald.c index fad387f2189..449b2501acf 100644 --- a/drivers/usb/misc/auerswald.c +++ b/drivers/usb/misc/auerswald.c @@ -767,7 +767,7 @@ static int auerbuf_setup (pauerbufctl_t bcp, unsigned int numElements, unsigned memset (bep, 0, sizeof (auerbuf_t)); bep->list = bcp; INIT_LIST_HEAD (&bep->buff_list); - bep->bufp = (char *) kmalloc (bufsize, GFP_KERNEL); + bep->bufp = kmalloc (bufsize, GFP_KERNEL); if (!bep->bufp) goto bl_fail; bep->dr = (struct usb_ctrlrequest *) kmalloc (sizeof (struct usb_ctrlrequest), GFP_KERNEL); @@ -1123,7 +1123,7 @@ static int auerswald_int_open (pauerswald_t cp) } } if (!cp->intbufp) { - cp->intbufp = (char *) kmalloc (irqsize, GFP_KERNEL); + cp->intbufp = kmalloc (irqsize, GFP_KERNEL); if (!cp->intbufp) { ret = -ENOMEM; goto intoend; |