projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
956b56a
)
vfio/type1: Fix build warning
author
Alex Williamson
<
[email protected]
>
Mon, 30 May 2016 13:58:10 +0000
(07:58 -0600)
committer
Alex Williamson
<
[email protected]
>
Mon, 30 May 2016 13:58:10 +0000
(07:58 -0600)
This function cannot actually be called with npage = 0, so in practice
this doesn't return an uninitialized value.
Signed-off-by: Alex Williamson <
[email protected]
>
drivers/vfio/vfio_iommu_type1.c
patch
|
blob
|
history
diff --git
a/drivers/vfio/vfio_iommu_type1.c
b/drivers/vfio/vfio_iommu_type1.c
index 15a65823aad9cb84f1f8e2696836a6156ffb7700..2ba19424e4a18f33555f370247ffc28204212089 100644
(file)
--- a/
drivers/vfio/vfio_iommu_type1.c
+++ b/
drivers/vfio/vfio_iommu_type1.c
@@
-515,7
+515,7
@@
static int map_try_harder(struct vfio_domain *domain, dma_addr_t iova,
unsigned long pfn, long npage, int prot)
{
long i;
- int ret;
+ int ret
= 0
;
for (i = 0; i < npage; i++, pfn++, iova += PAGE_SIZE) {
ret = iommu_map(domain->domain, iova,