aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorJiaran Zhang <[email protected]>2021-11-29 22:00:18 +0800
committerDavid S. Miller <[email protected]>2021-11-29 14:26:17 +0000
commited0e658c51aadb64b871cfa3de7d26599f171cdb (patch)
tree500655cfe31aaa671962f540835ca435bc10c06b /tools/perf/scripts/python/mem-phys-addr.py
parentaeeecb889165617a841e939117f9a8095d0e7d80 (diff)
net: hns3: refactor reset_prepare_general retry statement
Currently, the hclge_reset_prepare_general function uses the goto statement to jump upwards, which increases code complexity and makes the program structure difficult to understand. In addition, if reset_pending is set, retry_cnt cannot be increased. This may result in a failure to exit the retry or increase the number of retries. Use the while statement instead to make the program easier to understand and solve the problem that the goto statement cannot be exited. Signed-off-by: Jiaran Zhang <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions