Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303709
b: refs/heads/master
c: 0a3fd53
h: refs/heads/master
i:
  303707: 7650baa
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 2, 2012
1 parent 8701c77 commit 1494bb5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 1b6d8232586e4c144f5e90ab9606884dcf62c18f
refs/heads/master: 0a3fd536e685e0ceb646de1a43821bd11c0be75c
12 changes: 6 additions & 6 deletions trunk/drivers/usb/misc/appledisplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ static struct workqueue_struct *wq;
static void appledisplay_complete(struct urb *urb)
{
struct appledisplay *pdata = urb->context;
struct device *dev = &pdata->udev->dev;
unsigned long flags;
int status = urb->status;
int retval;
Expand All @@ -97,18 +98,18 @@ static void appledisplay_complete(struct urb *urb)
/* success */
break;
case -EOVERFLOW:
printk(KERN_ERR "appletouch: OVERFLOW with data "
"length %d, actual length is %d\n",
dev_err(dev,
"OVERFLOW with data length %d, actual length is %d\n",
ACD_URB_BUFFER_LEN, pdata->urb->actual_length);
case -ECONNRESET:
case -ENOENT:
case -ESHUTDOWN:
/* This urb is terminated, clean up */
dbg("%s - urb shuttingdown with status: %d",
dev_dbg(dev, "%s - urb shuttingdown with status: %d\n",
__func__, status);
return;
default:
dbg("%s - nonzero urb status received: %d",
dev_dbg(dev, "%s - nonzero urb status received: %d/n",
__func__, status);
goto exit;
}
Expand All @@ -132,8 +133,7 @@ static void appledisplay_complete(struct urb *urb)
exit:
retval = usb_submit_urb(pdata->urb, GFP_ATOMIC);
if (retval) {
dev_err(&pdata->udev->dev,
"%s - usb_submit_urb failed with result %d\n",
dev_err(dev, "%s - usb_submit_urb failed with result %d\n",
__func__, retval);
}
}
Expand Down

0 comments on commit 1494bb5

Please sign in to comment.