Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=dd95b814115e45e0bf800f2950b9941c86e68172
Commit:     dd95b814115e45e0bf800f2950b9941c86e68172
Parent:     79592b722e7a8476680197d97352d2cc0f1bffd2
Author:     Pete Zaitcev <[EMAIL PROTECTED]>
AuthorDate: Sat Jan 5 02:01:07 2008 -0800
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Feb 1 14:35:02 2008 -0800

    USB: usbfs: struct async is a fixed size structure
    
    The ISO descriptors are allocated separately in proc_submiturb for a fetch
    from user mode, then tucked at the end of URB. This seems like a dead code.
    
    Signed-off-by: Pete Zaitcev <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
---
 drivers/usb/core/devio.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index 32e5591..e661994 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -210,9 +210,9 @@ err:
 
 static struct async *alloc_async(unsigned int numisoframes)
 {
-        unsigned int assize = sizeof(struct async) + numisoframes * 
sizeof(struct usb_iso_packet_descriptor);
-        struct async *as = kzalloc(assize, GFP_KERNEL);
+       struct async *as;
 
+       as = kzalloc(sizeof(struct async), GFP_KERNEL);
         if (!as)
                 return NULL;
        as->urb = usb_alloc_urb(numisoframes, GFP_KERNEL);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to