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

USB: misc: appledisplay: 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>

+5 -4
+5 -4
drivers/usb/misc/appledisplay.c
··· 88 88 { 89 89 struct appledisplay *pdata = urb->context; 90 90 unsigned long flags; 91 + int status = urb->status; 91 92 int retval; 92 93 93 - switch (urb->status) { 94 + switch (status) { 94 95 case 0: 95 96 /* success */ 96 97 break; ··· 103 102 case -ENOENT: 104 103 case -ESHUTDOWN: 105 104 /* This urb is terminated, clean up */ 106 - dbg("%s - urb shutting down with status: %d", 107 - __FUNCTION__, urb->status); 105 + dbg("%s - urb shuttingdown with status: %d", 106 + __FUNCTION__, status); 108 107 return; 109 108 default: 110 109 dbg("%s - nonzero urb status received: %d", 111 - __FUNCTION__, urb->status); 110 + __FUNCTION__, status); 112 111 goto exit; 113 112 } 114 113