Changes in uspace/lib/usb/src/hc.c [a76b01b4:77ad86c] in mainline
- File:
-
- 1 edited
-
uspace/lib/usb/src/hc.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hc.c
ra76b01b4 r77ad86c 27 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 28 */ 29 29 30 /** @addtogroup libusb 30 31 * @{ … … 33 34 * General communication with host controller driver (implementation). 34 35 */ 36 35 37 #include <usb/debug.h> 36 38 … … 44 46 { 45 47 assert(connection); 48 46 49 fibril_mutex_lock(&connection->guard); 47 50 if (connection->ref_count == 0) { … … 55 58 } 56 59 } 60 57 61 ++connection->ref_count; 58 62 fibril_mutex_unlock(&connection->guard); … … 63 67 { 64 68 assert(connection); 69 65 70 fibril_mutex_lock(&connection->guard); 66 71 if (connection->ref_count == 0) { 67 72 /* Closing already closed connection... */ 68 assert(connection->hc_sess = NULL);73 assert(connection->hc_sess == NULL); 69 74 fibril_mutex_unlock(&connection->guard); 70 75 return EOK; 71 76 } 77 72 78 --connection->ref_count; 73 79 int ret = EOK;
Note:
See TracChangeset
for help on using the changeset viewer.
