]> git.hungrycats.org Git - linux/commit
[PATCH] USB: Code improvements for core/config.c
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 25 Mar 2004 07:17:16 +0000 (23:17 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 25 Mar 2004 07:17:16 +0000 (23:17 -0800)
commitc3d3c47239213af161451e5e21583622fea79262
tree65197be31992d6a6a53283157ad709eeed09b71c
parente51bf644ce8227779006aea1fe9b12cf63b498f1
[PATCH] USB: Code improvements for core/config.c

This patch makes some improvements to the code in config.c.

Create a subroutine to handle the repeated task of skipping
forward to the next descriptor of a certain type.

Remove some fairly useless debugging messages (they could
never even have been enabled in the pre-as221 code).

Verify that endpoint descriptors don't have an address
equal to 0 (as well as not being above 15).

Rename some local variables so they are a little more
consistent and meaningful.

Despite all the changes, the functionality should remain the same.
Please apply.
drivers/usb/core/config.c