[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] VT-d: fix coding style in acpi_find_matched_drhd_unit()



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1265917771 0
# Node ID f5da4b37f9ca3b3bb08cf483364f3fe98b6ec2e9
# Parent  8616a82df1c08064634e47875db1303c1fb231b5
VT-d: fix coding style in acpi_find_matched_drhd_unit()

Signed-off-by: Weidong Han <weidong.han@xxxxxxxxx>
---
 xen/drivers/passthrough/vtd/dmar.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff -r 8616a82df1c0 -r f5da4b37f9ca xen/drivers/passthrough/vtd/dmar.c
--- a/xen/drivers/passthrough/vtd/dmar.c        Thu Feb 11 19:48:58 2010 +0000
+++ b/xen/drivers/passthrough/vtd/dmar.c        Thu Feb 11 19:49:31 2010 +0000
@@ -176,13 +176,18 @@ struct acpi_drhd_unit * acpi_find_matche
     if ( pdev == NULL )
         return NULL;
 
-    if (pdev->info.is_extfn) {
+    if ( pdev->info.is_extfn )
+    {
         bus = pdev->bus;
         devfn = 0;
-    } else if (pdev->info.is_virtfn) {
+    }
+    else if ( pdev->info.is_virtfn )
+    {
         bus = pdev->info.physfn.bus;
         devfn = PCI_SLOT(pdev->info.physfn.devfn) ? 0 : 
pdev->info.physfn.devfn;
-    } else {
+    }
+    else
+    {
         bus = pdev->bus;
         devfn = pdev->devfn;
     }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.