linux-stable-rt/drivers/staging
Roel Kluin fff9c81529 MIPS: Octeon: False positive timeout
If we reach the test just below the loop with a `timeout' value of 0,
this does not mean that the timeout caused the loop to end, but rather
the `smi_rd.s.pending', in the last iteration. If timeout caused the
loop to end, then `timeout' is -1, not 0.

Since this can occur only in the last iteration, it is not very likely
to be a problem. By changing the post- to prefix decrement we ensure
that a timeout of 0 does mean it timed out.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2009-09-17 20:07:41 +02:00
..
agnx
altpciechdma
android
asus_oled Staging: asus_oled: Cleaned up checkpatch issues. 2009-09-15 12:02:33 -07:00
b3dfg
comedi Staging: comedi: addi-data: NULL dereference of amcc in v_pci_card_list_init() 2009-09-15 12:02:34 -07:00
cowloop Staging: cowloop: remove kernel version checks 2009-09-15 12:02:33 -07:00
cpc-usb
dream Staging: dream: introduce missing kfree 2009-09-15 12:02:34 -07:00
dst
echo
et131x
frontier
go7007
hv
iio Staging: iio: introduce missing kfree 2009-09-15 12:02:34 -07:00
line6 Staging: line6: ffzb returns an unsigned integer 2009-09-15 12:02:34 -07:00
mimio
octeon MIPS: Octeon: False positive timeout 2009-09-17 20:07:41 +02:00
otus
p9auth
panel
phison
poch
pohmelfs
quatech_usb2
rar
rt2860 Staging: rt2860/rt2870/rt3070/rt3090: fix compiler warning on x86_64 2009-09-15 12:02:34 -07:00
rt2870
rt3070
rt3090 Staging: rt3090: enable NATIVE_WPA_SUPPLICANT_SUPPORT option 2009-09-15 12:02:34 -07:00
rtl8187se
rtl8192e Staging: rtl8192e: Drop unnecessary NULL test 2009-09-15 12:02:33 -07:00
rtl8192su
sep
serqt_usb2
slicoss
stlc45xx
udlfb
usbip
vme
vt6655 Staging: vt665x: fix built-in compiling 2009-09-15 12:02:34 -07:00
vt6656 Staging: vt665x: fix built-in compiling 2009-09-15 12:02:34 -07:00
winbond
wlan-ng
Kconfig Staging: remove sxg driver 2009-09-15 12:02:35 -07:00
Makefile Staging: remove sxg driver 2009-09-15 12:02:35 -07:00
staging.c