linux/drivers/staging/qlge
Samuil Ivanov 41e1bf811a Staging: qlge: Rewrite two while loops as simple for loops
This is a task from the TODO list of qlge driver:
 - some "while" loops could be rewritten with simple "for"

The change is in functions ql_wait_reg_rdy and ql_wait_cfg in qlge_main.c.
The while loops are basically count based
(they decrement on each iteration),
and it makes more sense to be a for loop construction instead.

Signed-off-by: Samuil Ivanov <samuil.ivanovbg@gmail.com>
Link: https://lore.kernel.org/r/20191023205855.GA1841@samuil-ThinkCentre-M92P
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-26 20:49:09 +02:00
..
Kconfig
Makefile
qlge.h staging: qlge: Refill empty buffer queues from wq 2019-10-04 17:17:47 +02:00
qlge_dbg.c staging: qlge: fix comparison to NULL warning 2019-10-11 11:07:28 +02:00
qlge_ethtool.c
qlge_main.c Staging: qlge: Rewrite two while loops as simple for loops 2019-10-26 20:49:09 +02:00
qlge_mpi.c staging: qlge: Remove irq_cnt 2019-10-04 17:17:44 +02:00
TODO staging: qlge: Refill empty buffer queues from wq 2019-10-04 17:17:47 +02:00