diff options
author | Tianyu Lan <[email protected]> | 2022-07-21 23:38:46 -0400 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2022-07-22 17:20:56 +0200 |
commit | 72311809031217714e635b24f8478e6ecb0d93d9 (patch) | |
tree | 16ba453bcd936f8d97d6f66c3469fb99a3a1581b /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | a45e52bf1eca9bf8a7d075ce12b1e306497ce393 (diff) |
swiotlb: clean up some coding style and minor issues
- Fix the used field of struct io_tlb_area wasn't initialized
- Set area number to be 0 if input area number parameter is 0
- Use array_size() to calculate io_tlb_area array size
- Make parameters of swiotlb_do_find_slots() more reasonable
Fixes: 26ffb91fa5e0 ("swiotlb: split up the global swiotlb lock")
Signed-off-by: Tianyu Lan <[email protected]>
Reviewed-by: Michael Kelley <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions