Changeset 0d103aef in mainline for uspace/lib/usbdev/src


Ignore:
Timestamp:
2011-10-12T21:21:30Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
612af1a0
Parents:
32ec5671
Message:

uhcirh: make sure connection to hc is opoen during device removal.

Add error message and change error code to ENOTCONN if there is no connection to the hc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/hub.c

    r32ec5671 r0d103aef  
    5757                assert((conn)); \
    5858                if (!usb_hc_connection_is_opened((conn))) { \
    59                         return ENOENT; \
     59                        usb_log_error("Connection not open.\n"); \
     60                        return ENOTCONN; \
    6061                } \
    6162        } while (false)
Note: See TracChangeset for help on using the changeset viewer.