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

USB: atm: usbatm: 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>

+6 -5
+6 -5
drivers/usb/atm/usbatm.c
··· 257 257 { 258 258 struct usbatm_channel *channel = urb->context; 259 259 unsigned long flags; 260 + int status = urb->status; 260 261 261 262 vdbg("%s: urb 0x%p, status %d, actual_length %d", 262 - __func__, urb, urb->status, urb->actual_length); 263 + __func__, urb, status, urb->actual_length); 263 264 264 265 /* usually in_interrupt(), but not always */ 265 266 spin_lock_irqsave(&channel->lock, flags); ··· 270 269 271 270 spin_unlock_irqrestore(&channel->lock, flags); 272 271 273 - if (unlikely(urb->status) && 272 + if (unlikely(status) && 274 273 (!(channel->usbatm->flags & UDSL_IGNORE_EILSEQ) || 275 - urb->status != -EILSEQ )) 274 + status != -EILSEQ )) 276 275 { 277 - if (urb->status == -ESHUTDOWN) 276 + if (status == -ESHUTDOWN) 278 277 return; 279 278 280 279 if (printk_ratelimit()) 281 280 atm_warn(channel->usbatm, "%s: urb 0x%p failed (%d)!\n", 282 - __func__, urb, urb->status); 281 + __func__, urb, status); 283 282 /* throttle processing in case of an error */ 284 283 mod_timer(&channel->delay, jiffies + msecs_to_jiffies(THROTTLE_MSECS)); 285 284 } else