WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] VT-d: fix coding style in acpi_find_match

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] VT-d: fix coding style in acpi_find_matched_drhd_unit()
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Feb 2010 14:50:21 -0800
Delivery-date: Thu, 11 Feb 2010 14:50:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] VT-d: fix coding style in acpi_find_matched_drhd_unit(), Xen patchbot-unstable <=