diff options
author | Andy Shevchenko <[email protected]> | 2019-11-08 13:18:55 +0200 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2019-11-11 18:15:36 -0600 |
commit | b94ec12dfaee41bdd6a8b6d75e5715d9ba2c92cc (patch) | |
tree | e61728baa7e31add2cba66d9b455a631fa745221 /lib/test_fortify/write_overflow-strcpy.c | |
parent | 157c1062fcd86ade3c674503705033051fd3d401 (diff) |
PCI: pciehp: Refactor infinite loop in pcie_poll_cmd()
Infinite timeout loops are hard to read. Refactor it to plausible 'do {}
while ()'.
Note, the supplied timeout can't be negative for current use, though if
it's not dividable to 10, we may go below 0, that's why type of the
parameter is int. And thus, we may move the check to the loop condition.
No functional change intended.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Andrew Murray <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions