Commit 59d99785 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: misc: usbtest: 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 0723af13
...@@ -768,8 +768,8 @@ static void ctrl_complete (struct urb *urb) ...@@ -768,8 +768,8 @@ static void ctrl_complete (struct urb *urb)
/* some faults are allowed, not required */ /* some faults are allowed, not required */
if (subcase->expected > 0 && ( if (subcase->expected > 0 && (
((urb->status == -subcase->expected /* happened */ ((status == -subcase->expected /* happened */
|| urb->status == 0)))) /* didn't */ || status == 0)))) /* didn't */
status = 0; status = 0;
/* sometimes more than one fault is allowed */ /* sometimes more than one fault is allowed */
else if (subcase->number == 12 && status == -EPIPE) else if (subcase->number == 12 && status == -EPIPE)
......
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