Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/hc.c

    r77ad86c ra76b01b4  
    2727 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2828 */
    29 
    3029/** @addtogroup libusb
    3130 * @{
     
    3433 * General communication with host controller driver (implementation).
    3534 */
    36 
    3735#include <usb/debug.h>
    3836
     
    4644{
    4745        assert(connection);
    48        
    4946        fibril_mutex_lock(&connection->guard);
    5047        if (connection->ref_count == 0) {
     
    5855                }
    5956        }
    60        
    6157        ++connection->ref_count;
    6258        fibril_mutex_unlock(&connection->guard);
     
    6763{
    6864        assert(connection);
    69        
    7065        fibril_mutex_lock(&connection->guard);
    7166        if (connection->ref_count == 0) {
    7267                /* Closing already closed connection... */
    73                 assert(connection->hc_sess == NULL);
     68                assert(connection->hc_sess = NULL);
    7469                fibril_mutex_unlock(&connection->guard);
    7570                return EOK;
    7671        }
    77        
    7872        --connection->ref_count;
    7973        int ret = EOK;
Note: See TracChangeset for help on using the changeset viewer.