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

USB: serial: ipaq: 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>
Cc: Ganesh Varadarajan <ganesh@veritas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

+9 -5
+9 -5
drivers/usb/serial/ipaq.c
··· 732 732 struct tty_struct *tty; 733 733 unsigned char *data = urb->transfer_buffer; 734 734 int result; 735 + int status = urb->status; 735 736 736 737 dbg("%s - port %d", __FUNCTION__, port->number); 737 738 738 - if (urb->status) { 739 - dbg("%s - nonzero read bulk status received: %d", __FUNCTION__, urb->status); 739 + if (status) { 740 + dbg("%s - nonzero read bulk status received: %d", 741 + __FUNCTION__, status); 740 742 return; 741 743 } 742 744 ··· 872 870 struct ipaq_private *priv = usb_get_serial_port_data(port); 873 871 unsigned long flags; 874 872 int result; 873 + int status = urb->status; 875 874 876 875 dbg("%s - port %d", __FUNCTION__, port->number); 877 - 878 - if (urb->status) { 879 - dbg("%s - nonzero write bulk status received: %d", __FUNCTION__, urb->status); 876 + 877 + if (status) { 878 + dbg("%s - nonzero write bulk status received: %d", 879 + __FUNCTION__, status); 880 880 return; 881 881 } 882 882