From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EX13-EDG-OU-002.vmware.com (ex13-edg-ou-002.vmware.com [208.91.0.190]) by dpdk.org (Postfix) with ESMTP id 99E12137D for ; Fri, 8 Jul 2016 00:43:03 +0200 (CEST) Received: from sc9-mailhost3.vmware.com (10.113.161.73) by EX13-EDG-OU-002.vmware.com (10.113.208.156) with Microsoft SMTP Server id 15.0.1156.6; Thu, 7 Jul 2016 15:42:45 -0700 Received: from prmh-edge-ivybridge-01.eng.vmware.com (unknown [10.24.235.72]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 6166140463; Thu, 7 Jul 2016 15:43:01 -0700 (PDT) From: Yong Wang To: CC: , Yong Wang Date: Thu, 7 Jul 2016 15:26:37 -0700 Message-ID: <1467930397-39777-2-git-send-email-yongwang@vmware.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467930397-39777-1-git-send-email-yongwang@vmware.com> References: <1467930397-39777-1-git-send-email-yongwang@vmware.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: None (EX13-EDG-OU-002.vmware.com: yongwang@vmware.com does not designate permitted sender hosts) Subject: [dpdk-dev] [PATCH 2/2] vfio: fix coding style X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2016 22:43:04 -0000 Signed-off-by: Yong Wang --- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c index 3729c35..6492216 100644 --- a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c +++ b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c @@ -274,7 +274,8 @@ pci_vfio_set_bus_master(int dev_fd) /* pick IOMMU type. returns a pointer to vfio_iommu_type or NULL for error */ static const struct vfio_iommu_type * -pci_vfio_set_iommu_type(int vfio_container_fd) { +pci_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]; @@ -297,7 +298,8 @@ pci_vfio_set_iommu_type(int vfio_container_fd) { /* check if we have any supported extensions */ static int -pci_vfio_has_supported_extensions(int vfio_container_fd) { +pci_vfio_has_supported_extensions(int vfio_container_fd) +{ int ret; unsigned idx, n_extensions = 0; for (idx = 0; idx < RTE_DIM(iommu_types); idx++) { -- 1.9.1