[PATCH] USB: Changes to core/config.c (5 of 9)
This patch centralizes the error checking for invalid descriptor lengths and unexpected descriptor types. Instead of doing it in three different places -- while parsing configuration, interface, and endpoint descriptors -- the new code does it all at once. Not surprisingly, this yields a net savings in code size.
Showing
Please register or sign in to comment