summaryrefslogtreecommitdiffstats
path: root/kernel/umh.c
diff options
context:
space:
mode:
authorShenming Lu <lushenming@huawei.com>2021-04-06 21:50:09 +0800
committerAlex Williamson <alex.williamson@redhat.com>2021-04-06 11:53:50 -0600
commita536019d3e7d85a901c5e6a2f2894c0aa0acaefa (patch)
treee21b64a737f4bc78f4c1d9ecbc70297aded779b6 /kernel/umh.c
parentf5c858ec2b1d2a2656d78a5efe37cfcf568fce31 (diff)
downloadlinux-a536019d3e7d85a901c5e6a2f2894c0aa0acaefa.tar.gz
linux-a536019d3e7d85a901c5e6a2f2894c0aa0acaefa.tar.bz2
linux-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 'kernel/umh.c')
0 files changed, 0 insertions, 0 deletions