If the value read from HERMES_RID_TXQUEUEEMPTY becomes 0 after exactly 100 readings, we wrongly consider it a timeout. Rewrite the clever while loop as a for loop that does the right thing and looks simpler. Reported by Juha Leppanen <juha_motorsportcom@luukku.com> Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: John W. Linville <linville@tuxdriver.com> |
||
|---|---|---|
| .. | ||
| airport.c | ||
| fw.c | ||
| fw.h | ||
| hermes_dld.c | ||
| hermes_dld.h | ||
| hermes_rid.h | ||
| hermes.c | ||
| hermes.h | ||
| hw.c | ||
| hw.h | ||
| Kconfig | ||
| main.c | ||
| main.h | ||
| Makefile | ||
| mic.c | ||
| mic.h | ||
| orinoco_cs.c | ||
| orinoco_nortel.c | ||
| orinoco_pci.c | ||
| orinoco_pci.h | ||
| orinoco_plx.c | ||
| orinoco_tmd.c | ||
| orinoco.h | ||
| scan.c | ||
| scan.h | ||
| spectrum_cs.c | ||
| wext.c | ||
| wext.h | ||