diff options
| author | Alan Stern <stern@rowland.harvard.edu> | 2003-09-17 03:59:57 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2003-09-17 03:59:57 -0700 |
| commit | 46c4d99be2f36abda46f51b33ecb2e9fb940e927 (patch) | |
| tree | 3dcba5f09df10399bf6ebeda9d8a81205540f8dd /include/linux/writeback.h | |
| parent | 5446ab92b78853b432dbe47b8e555d3c65a1e61b (diff) | |
[PATCH] USB: Changes to core/config.c (6 of 9)
This patch removes the home-brewed resizeable arrays used to store
altsetting structures, along with the now-unneeded max_altsetting field.
Since we are already making a preliminary pass through all the descriptors
to check their lengths, we take the opportunity to also count the number
of altsetting descriptors for each interface. Then exactly the right
number can be allocated all at once.
This also moves the code that allocates the altsettings outside the
usb_parse_interface() routine. Though not important now, this change will
come in handy in the next patch.
Diffstat (limited to 'include/linux/writeback.h')
0 files changed, 0 insertions, 0 deletions
