Commit 82210d37 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: misc: uss720: 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 59d99785
...@@ -111,12 +111,13 @@ static void async_complete(struct urb *urb) ...@@ -111,12 +111,13 @@ static void async_complete(struct urb *urb)
struct uss720_async_request *rq; struct uss720_async_request *rq;
struct parport *pp; struct parport *pp;
struct parport_uss720_private *priv; struct parport_uss720_private *priv;
int status = urb->status;
rq = urb->context; rq = urb->context;
priv = rq->priv; priv = rq->priv;
pp = priv->pp; pp = priv->pp;
if (urb->status) { if (status) {
err("async_complete: urb error %d", urb->status); err("async_complete: urb error %d", status);
} else if (rq->dr.bRequest == 3) { } else if (rq->dr.bRequest == 3) {
memcpy(priv->reg, rq->reg, sizeof(priv->reg)); memcpy(priv->reg, rq->reg, sizeof(priv->reg));
#if 0 #if 0
......
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