diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2020-11-05 16:09:32 +0000 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-11-16 10:22:19 -0500 |
commit | 748d619be3282fba35f99446098ac2d0579f6063 (patch) | |
tree | 80687e6fe68f3cdbfd468780f79819e57b8ee977 /scripts/layoutrom.py | |
parent | 94f0510dc75e910400aad6c169048d672c8c7193 (diff) | |
download | seabios-748d619be3282fba35f99446098ac2d0579f6063.zip seabios-748d619be3282fba35f99446098ac2d0579f6063.tar.gz seabios-748d619be3282fba35f99446098ac2d0579f6063.tar.bz2 |
nvme: Clean up nvme_cmd_readwrite()
This ended up with an odd mix of recursion (albeit *mostly*
tail-recursion) and interation that could have been prettier. In
addition, while recursing it potentially adjusted op->count which is
used by callers to see the amount of I/O actually performed.
Fix it by bringing nvme_build_prpl() into the normal loop using 'i'
as the offset in the op.
Fixes: 94f0510dc ("nvme: Split requests by maximum allowed size")
Reviewed-by: Alexander Graf <graf@amazon.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Diffstat (limited to 'scripts/layoutrom.py')
0 files changed, 0 insertions, 0 deletions