uas: Avoid unnecessary unlock / lock calls around unlink_data_urbs
authorHans de Goede <hdegoede@redhat.com>
Thu, 17 Oct 2013 17:19:04 +0000 (19:19 +0200)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 4 Mar 2014 23:38:08 +0000 (15:38 -0800)
commit7e50e0bec45897caeb978e5aecc9184a2dc00df2
treead2c7878908452c589d2ee74fb866a2f5c26227f
parent6ce8213b3328ae4a1db34339c282144740ac1ec6
uas: Avoid unnecessary unlock / lock calls around unlink_data_urbs

All callers of unlink_data_urbs drop devinfo->lock before calling it, and
then immediately take it again after the call. And the first thing
unlink_data_urbs does is take the lock again, and the last thing it does
is drop it. This commit removes all the unnecessary lock dropping and taking.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/storage/uas.c