Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61961
b: refs/heads/master
c: 0723af1
h: refs/heads/master
i:
  61959: d29ae95
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jul 20, 2007
1 parent 354cdb1 commit 3bc6a02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: a95a03811beb4ac4b9ac4a39486b912d07d64d64
refs/heads/master: 0723af13bf5c6710af99531fc4862622f3c2d637
11 changes: 6 additions & 5 deletions trunk/drivers/usb/misc/usblcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,17 @@ static int lcd_ioctl(struct inode *inode, struct file *file, unsigned int cmd, u
static void lcd_write_bulk_callback(struct urb *urb)
{
struct usb_lcd *dev;
int status = urb->status;

dev = (struct usb_lcd *)urb->context;

/* sync/async unlink faults aren't errors */
if (urb->status &&
!(urb->status == -ENOENT ||
urb->status == -ECONNRESET ||
urb->status == -ESHUTDOWN)) {
if (status &&
!(status == -ENOENT ||
status == -ECONNRESET ||
status == -ESHUTDOWN)) {
dbg("USBLCD: %s - nonzero write bulk status received: %d",
__FUNCTION__, urb->status);
__FUNCTION__, status);
}

/* free up our allocated buffer */
Expand Down

0 comments on commit 3bc6a02

Please sign in to comment.