aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorPete Zaitcev <zaitcev@redhat.com>2008-01-05 05:01:07 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-02-01 17:35:02 -0500
commitdd95b814115e45e0bf800f2950b9941c86e68172 (patch)
tree1b04fba435a5c8342f69b67ba226519e0c7e1f1f /drivers/usb
parent79592b722e7a8476680197d97352d2cc0f1bffd2 (diff)
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 <zaitcev@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/devio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index 32e5591ae7b1..e661994ad18d 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -210,9 +210,9 @@ err:
210 210
211static struct async *alloc_async(unsigned int numisoframes) 211static struct async *alloc_async(unsigned int numisoframes)
212{ 212{
213 unsigned int assize = sizeof(struct async) + numisoframes * sizeof(struct usb_iso_packet_descriptor); 213 struct async *as;
214 struct async *as = kzalloc(assize, GFP_KERNEL);
215 214
215 as = kzalloc(sizeof(struct async), GFP_KERNEL);
216 if (!as) 216 if (!as)
217 return NULL; 217 return NULL;
218 as->urb = usb_alloc_urb(numisoframes, GFP_KERNEL); 218 as->urb = usb_alloc_urb(numisoframes, GFP_KERNEL);