Files
linux/drivers/usb/host
John Youn 79a31466ee USB: xhci: Remove buggy assignment in next_trb()
commit a1669b2c64 upstream.

The code to increment the TRB pointer has a slight ambiguity that could
lead to a bug on different compilers.  The ANSI C specification does not
specify the precedence of the assignment operator over the postfix
operator.  gcc 4.4 produced the correct code (increment the pointer and
assign the value), but a MIPS compiler that one of John's clients used
assigned the old (unincremented) value.

Remove the unnecessary assignment to make all compilers produce the
correct assembly.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-08-26 16:41:58 -07:00
..
2009-09-23 06:46:29 -07:00
2010-05-12 14:56:59 -07:00
2009-09-23 06:46:30 -07:00
2009-09-23 06:46:30 -07:00
2009-09-23 06:46:29 -07:00
2009-06-16 14:17:32 +10:00
2009-07-23 13:04:10 +09:00
2008-08-29 09:43:14 +02:00
2009-06-15 21:44:48 -07:00