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