Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61948
b: refs/heads/master
c: 62e5a33
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jul 20, 2007
1 parent 2df2393 commit 1e938ca
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 18ac3016055b58d676f6148a77dcf539d05ce215
refs/heads/master: 62e5a330dc1354d98f73a82f3d13517805f061f6
13 changes: 7 additions & 6 deletions trunk/drivers/usb/storage/onetouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ static void usb_onetouch_irq(struct urb *urb)
struct usb_onetouch *onetouch = urb->context;
signed char *data = onetouch->data;
struct input_dev *dev = onetouch->dev;
int status;
int status = urb->status;
int retval;

switch (urb->status) {
switch (status) {
case 0: /* success */
break;
case -ECONNRESET: /* unlink */
Expand All @@ -75,11 +76,11 @@ static void usb_onetouch_irq(struct urb *urb)
input_sync(dev);

resubmit:
status = usb_submit_urb (urb, GFP_ATOMIC);
if (status)
err ("can't resubmit intr, %s-%s/input0, status %d",
retval = usb_submit_urb (urb, GFP_ATOMIC);
if (retval)
err ("can't resubmit intr, %s-%s/input0, retval %d",
onetouch->udev->bus->bus_name,
onetouch->udev->devpath, status);
onetouch->udev->devpath, retval);
}

static int usb_onetouch_open(struct input_dev *dev)
Expand Down

0 comments on commit 1e938ca

Please sign in to comment.