Skip to content

Commit

Permalink
USB: misc: uss720: clean up urb->status usage
Browse files Browse the repository at this point in the history
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: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Jul 20, 2007
1 parent 59d9978 commit 82210d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/usb/misc/uss720.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ static void async_complete(struct urb *urb)
struct uss720_async_request *rq;
struct parport *pp;
struct parport_uss720_private *priv;
int status = urb->status;

rq = urb->context;
priv = rq->priv;
pp = priv->pp;
if (urb->status) {
err("async_complete: urb error %d", urb->status);
if (status) {
err("async_complete: urb error %d", status);
} else if (rq->dr.bRequest == 3) {
memcpy(priv->reg, rq->reg, sizeof(priv->reg));
#if 0
Expand Down

0 comments on commit 82210d3

Please sign in to comment.