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

USB: serial: belkin_sa: 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.


Cc: <linux-usb-devel@lists.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

+6 -3
+6 -3
drivers/usb/serial/belkin_sa.c
··· 255 255 struct belkin_sa_private *priv; 256 256 unsigned char *data = urb->transfer_buffer; 257 257 int retval; 258 + int status = urb->status; 258 259 unsigned long flags; 259 260 260 - switch (urb->status) { 261 + switch (status) { 261 262 case 0: 262 263 /* success */ 263 264 break; ··· 266 265 case -ENOENT: 267 266 case -ESHUTDOWN: 268 267 /* this urb is terminated, clean up */ 269 - dbg("%s - urb shutting down with status: %d", __FUNCTION__, urb->status); 268 + dbg("%s - urb shutting down with status: %d", 269 + __FUNCTION__, status); 270 270 return; 271 271 default: 272 - dbg("%s - nonzero urb status received: %d", __FUNCTION__, urb->status); 272 + dbg("%s - nonzero urb status received: %d", 273 + __FUNCTION__, status); 273 274 goto exit; 274 275 } 275 276