diff options
author | Shenming Lu <[email protected]> | 2021-04-06 21:50:09 +0800 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2021-04-06 11:53:50 -0600 |
commit | a536019d3e7d85a901c5e6a2f2894c0aa0acaefa (patch) | |
tree | e21b64a737f4bc78f4c1d9ecbc70297aded779b6 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | f5c858ec2b1d2a2656d78a5efe37cfcf568fce31 (diff) |
vfio/type1: Remove the almost unused check in vfio_iommu_type1_unpin_pages
The check i > npage at the end of vfio_iommu_type1_unpin_pages is unused
unless npage < 0, but if npage < 0, this function will return npage, which
should return -EINVAL instead. So let's just check the parameter npage at
the start of the function. By the way, replace unpin_exit with break.
Signed-off-by: Shenming Lu <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions