diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-02-11 19:49:31 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-02-11 19:49:31 +0000 |
commit | 540e6238748ac079729dfa91df940aaa414518f1 (patch) | |
tree | ed350bdd6a02b911642ffbee3cef8a99f6e08237 | |
parent | 275c052dac52c397e933a01f80022e6472d5adf9 (diff) | |
download | xen-540e6238748ac079729dfa91df940aaa414518f1.tar.gz xen-540e6238748ac079729dfa91df940aaa414518f1.tar.bz2 xen-540e6238748ac079729dfa91df940aaa414518f1.zip |
VT-d: fix coding style in acpi_find_matched_drhd_unit()
Signed-off-by: Weidong Han <weidong.han@intel.com>
-rw-r--r-- | xen/drivers/passthrough/vtd/dmar.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/xen/drivers/passthrough/vtd/dmar.c b/xen/drivers/passthrough/vtd/dmar.c index 5ed4877b1d..1b083f7af8 100644 --- a/xen/drivers/passthrough/vtd/dmar.c +++ b/xen/drivers/passthrough/vtd/dmar.c @@ -176,13 +176,18 @@ struct acpi_drhd_unit * acpi_find_matched_drhd_unit(struct pci_dev *pdev) 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; } |