Changeset 37b13175 in mainline for uspace/drv/bus/usb/xhci/rh.c


Ignore:
Timestamp:
2018-01-13T12:25:38Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b56e528
Parents:
93757c5
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-13 12:25:30)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-13 12:25:38)
Message:

xhci rh: removed unnecessary mutex locking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/rh.c

    r93757c5 r37b13175  
    195195        }
    196196
    197         fibril_mutex_lock(&rh->device.base.guard);
    198197        rh->devices_by_port[port_id - 1] = xhci_dev;
    199         fibril_mutex_unlock(&rh->device.base.guard);
    200198
    201199        return EOK;
     
    275273
    276274        /* Mark the device as detached. */
    277         fibril_mutex_lock(&rh->device.base.guard);
    278275        rh->devices_by_port[port_id - 1] = NULL;
    279         fibril_mutex_unlock(&rh->device.base.guard);
    280276
    281277        /* Remove device from XHCI bus. */
Note: See TracChangeset for help on using the changeset viewer.