diff options
Diffstat (limited to 'drivers/usb/class/usblp.c')
-rw-r--r-- | drivers/usb/class/usblp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c index 433bbc34a8a4..071964c7847f 100644 --- a/drivers/usb/class/usblp.c +++ b/drivers/usb/class/usblp.c | |||
@@ -884,11 +884,11 @@ static int usblp_wwait(struct usblp *usblp, int nonblock) | |||
884 | 884 | ||
885 | add_wait_queue(&usblp->wwait, &waita); | 885 | add_wait_queue(&usblp->wwait, &waita); |
886 | for (;;) { | 886 | for (;;) { |
887 | set_current_state(TASK_INTERRUPTIBLE); | ||
888 | if (mutex_lock_interruptible(&usblp->mut)) { | 887 | if (mutex_lock_interruptible(&usblp->mut)) { |
889 | rc = -EINTR; | 888 | rc = -EINTR; |
890 | break; | 889 | break; |
891 | } | 890 | } |
891 | set_current_state(TASK_INTERRUPTIBLE); | ||
892 | rc = usblp_wtest(usblp, nonblock); | 892 | rc = usblp_wtest(usblp, nonblock); |
893 | mutex_unlock(&usblp->mut); | 893 | mutex_unlock(&usblp->mut); |
894 | if (rc <= 0) | 894 | if (rc <= 0) |