• Alan Stern's avatar
    [PATCH] USB: Use normal return codes for several routines in hub.c · ae0c1536
    Alan Stern authored
    This patch changes the return codes used by hub_port_wait_reset(),
    hub_port_reset(), and hub_port_debounce() in hub.c.  I couldn't stand the
    {-1=error, 0=okay, 1=disconnect} scheme; the meanings seemed arbitrary and
    I constantly forgot which number stood for what status.  The revised code
    uses normal negative error codes, including -ENOTCONN to indicate device
    disconnected, or 0 for success.
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    ae0c1536
hub.c 45.2 KB