Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67841
b: refs/heads/master
c: fc401e6
h: refs/heads/master
i:
  67839: 132368d
v: v3
  • Loading branch information
Pete Zaitcev authored and Greg Kroah-Hartman committed Oct 12, 2007
1 parent c092567 commit 4f6e5d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b5cd5fefbe023625a7ff7604e8beb9a15a9efab
refs/heads/master: fc401e697f8c00ad1178a6758e86e3881dfa3181
7 changes: 4 additions & 3 deletions trunk/drivers/usb/class/usblp.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,16 +345,17 @@ static int usblp_check_status(struct usblp *usblp, int err)
unsigned char status, newerr = 0;
int error;

error = usblp_read_status (usblp, usblp->statusbuf);
if (error < 0) {
mutex_lock(&usblp->mut);
if ((error = usblp_read_status(usblp, usblp->statusbuf)) < 0) {
mutex_unlock(&usblp->mut);
if (printk_ratelimit())
printk(KERN_ERR
"usblp%d: error %d reading printer status\n",
usblp->minor, error);
return 0;
}

status = *usblp->statusbuf;
mutex_unlock(&usblp->mut);

if (~status & LP_PERRORP)
newerr = 3;
Expand Down

0 comments on commit 4f6e5d6

Please sign in to comment.