summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-06-04 10:15:36 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2008-06-04 10:15:36 +1000
commit5a5da6e28ad300ef20ed20f496546a4fb20ec911 (patch)
tree3609ade53cef3eb8e767828f1d731481bd2dfc58 /drivers
parenta8a0f64eb05837a24e78e1d165fafcfcd29c3c69 (diff)
misc:down_nowait-drivers_usb_core_usb
down_trylock -> down_try for usb_trylock_device() I took the liberty of reversing the sense of usb_trylock_device(): it only has one user anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/core/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index 325774375837..2f76846e1c60 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -478,7 +478,7 @@ int usb_lock_device_for_reset(struct usb_device *udev,
}
}
- while (usb_trylock_device(udev) != 0) {
+ while (!usb_trylock_device(udev)) {
/* If we can't acquire the lock after waiting one second,
* we're probably deadlocked */