fff9c81529
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> |
||
---|---|---|
.. | ||
agnx | ||
altpciechdma | ||
android | ||
asus_oled | ||
b3dfg | ||
comedi | ||
cowloop | ||
cpc-usb | ||
dream | ||
dst | ||
echo | ||
et131x | ||
frontier | ||
go7007 | ||
hv | ||
iio | ||
line6 | ||
mimio | ||
octeon | ||
otus | ||
p9auth | ||
panel | ||
phison | ||
poch | ||
pohmelfs | ||
quatech_usb2 | ||
rar | ||
rt2860 | ||
rt2870 | ||
rt3070 | ||
rt3090 | ||
rtl8187se | ||
rtl8192e | ||
rtl8192su | ||
sep | ||
serqt_usb2 | ||
slicoss | ||
stlc45xx | ||
udlfb | ||
usbip | ||
vme | ||
vt6655 | ||
vt6656 | ||
winbond | ||
wlan-ng | ||
Kconfig | ||
Makefile | ||
staging.c |