提交 c35f68a0 编写于 作者: G Greg Kroah-Hartman

USB: atm: cxacru: 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: NGreg Kroah-Hartman <gregkh@suse.de>
上级 598f22e1
...@@ -456,7 +456,7 @@ static int cxacru_start_wait_urb(struct urb *urb, struct completion *done, ...@@ -456,7 +456,7 @@ static int cxacru_start_wait_urb(struct urb *urb, struct completion *done,
int* actual_length) int* actual_length)
{ {
struct timer_list timer; struct timer_list timer;
int status; int status = urb->status;
init_timer(&timer); init_timer(&timer);
timer.expires = jiffies + msecs_to_jiffies(CMD_TIMEOUT); timer.expires = jiffies + msecs_to_jiffies(CMD_TIMEOUT);
...@@ -464,7 +464,6 @@ static int cxacru_start_wait_urb(struct urb *urb, struct completion *done, ...@@ -464,7 +464,6 @@ static int cxacru_start_wait_urb(struct urb *urb, struct completion *done,
timer.function = cxacru_timeout_kill; timer.function = cxacru_timeout_kill;
add_timer(&timer); add_timer(&timer);
wait_for_completion(done); wait_for_completion(done);
status = urb->status;
del_timer_sync(&timer); del_timer_sync(&timer);
if (actual_length) if (actual_length)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册