Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Greg Kroah-Hartman <gregkh@suse.de>

+1 -2
+1 -2
drivers/usb/atm/cxacru.c
··· 456 456 int* actual_length) 457 457 { 458 458 struct timer_list timer; 459 - int status; 459 + int status = urb->status; 460 460 461 461 init_timer(&timer); 462 462 timer.expires = jiffies + msecs_to_jiffies(CMD_TIMEOUT); ··· 464 464 timer.function = cxacru_timeout_kill; 465 465 add_timer(&timer); 466 466 wait_for_completion(done); 467 - status = urb->status; 468 467 del_timer_sync(&timer); 469 468 470 469 if (actual_length)