diff options
| author | 2021-04-06 21:50:09 +0800 | |
|---|---|---|
| committer | 2021-04-06 11:53:50 -0600 | |
| commit | a536019d3e7d85a901c5e6a2f2894c0aa0acaefa (patch) | |
| tree | e21b64a737f4bc78f4c1d9ecbc70297aded779b6 /samples/git:/ssh:/git@git.zx2c4.com | |
| parent | vfio/platform: Fix spelling mistake "registe" -> "register" (diff) | |
| download | linux-dev-a536019d3e7d85a901c5e6a2f2894c0aa0acaefa.tar.xz linux-dev-a536019d3e7d85a901c5e6a2f2894c0aa0acaefa.zip | |
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 <lushenming@huawei.com>
Message-Id: <20210406135009.1707-1-lushenming@huawei.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'samples/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
