summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYong Wang <yongwang@vmware.com>2016-07-07 15:26:37 -0700
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-15 22:12:37 +0200
commiteb68811af7185a2e5b582dfed8afd9840cf92854 (patch)
tree36ce5e4f209e9e1b905f738bebdbb7e611b6bbf9 /lib
parent9ba723566440d79f572bc88ce53241121fead43d (diff)
downloaddpdk-eb68811af7185a2e5b582dfed8afd9840cf92854.zip
dpdk-eb68811af7185a2e5b582dfed8afd9840cf92854.tar.gz
dpdk-eb68811af7185a2e5b582dfed8afd9840cf92854.tar.xz
vfio: fix coding style
Signed-off-by: Yong Wang <yongwang@vmware.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/librte_eal/linuxapp/eal/eal_vfio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/librte_eal/linuxapp/eal/eal_vfio.c b/lib/librte_eal/linuxapp/eal/eal_vfio.c
index fcb0ab3..702f7a2 100644
--- a/lib/librte_eal/linuxapp/eal/eal_vfio.c
+++ b/lib/librte_eal/linuxapp/eal/eal_vfio.c
@@ -344,7 +344,8 @@ vfio_is_enabled(const char *modname)
}
const struct vfio_iommu_type *
-vfio_set_iommu_type(int vfio_container_fd) {
+vfio_set_iommu_type(int vfio_container_fd)
+{
unsigned idx;
for (idx = 0; idx < RTE_DIM(iommu_types); idx++) {
const struct vfio_iommu_type *t = &iommu_types[idx];
@@ -366,7 +367,8 @@ vfio_set_iommu_type(int vfio_container_fd) {
}
int
-vfio_has_supported_extensions(int vfio_container_fd) {
+vfio_has_supported_extensions(int vfio_container_fd)
+{
int ret;
unsigned idx, n_extensions = 0;
for (idx = 0; idx < RTE_DIM(iommu_types); idx++) {