• Alan Stern's avatar
    [PATCH] USB: Changes to core/config.c (5 of 9) · 5446ab92
    Alan Stern authored
    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.
    5446ab92
config.c 12.1 KB