Commit 13f9782d authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: misc: appledisplay: clean up urb->status usage

This done in anticipation of removal of urb->status, which will make
that patch easier to review and apply in the future.
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 24497a00
...@@ -88,9 +88,10 @@ static void appledisplay_complete(struct urb *urb) ...@@ -88,9 +88,10 @@ static void appledisplay_complete(struct urb *urb)
{ {
struct appledisplay *pdata = urb->context; struct appledisplay *pdata = urb->context;
unsigned long flags; unsigned long flags;
int status = urb->status;
int retval; int retval;
switch (urb->status) { switch (status) {
case 0: case 0:
/* success */ /* success */
break; break;
...@@ -102,12 +103,12 @@ static void appledisplay_complete(struct urb *urb) ...@@ -102,12 +103,12 @@ static void appledisplay_complete(struct urb *urb)
case -ENOENT: case -ENOENT:
case -ESHUTDOWN: case -ESHUTDOWN:
/* This urb is terminated, clean up */ /* This urb is terminated, clean up */
dbg("%s - urb shutting down with status: %d", dbg("%s - urb shuttingdown with status: %d",
__FUNCTION__, urb->status); __FUNCTION__, status);
return; return;
default: default:
dbg("%s - nonzero urb status received: %d", dbg("%s - nonzero urb status received: %d",
__FUNCTION__, urb->status); __FUNCTION__, status);
goto exit; goto exit;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment