aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/amd_iommu_init.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2008-07-11 11:14:30 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-11 12:01:15 -0400
commit58a3bee567b588a84cdde05fecc45439b396362c (patch)
treeb7157953bd7ed31eb614e8020b57392160a16360 /arch/x86/kernel/amd_iommu_init.c
parentd0312b2142ac7665031755c1cc3dba827d4eb711 (diff)
x86, AMD IOMMU: use true/false instead of 0/1 for bool value
This patch replaces the integer values used for the bool variable in ACPI scanning code with true and false. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Cc: iommu@lists.linux-foundation.org Cc: bhavna.sarathy@amd.com Cc: robert.richter@amd.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/amd_iommu_init.c')
-rw-r--r--arch/x86/kernel/amd_iommu_init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c
index 0124995c7b5d..316fe2eaeefe 100644
--- a/arch/x86/kernel/amd_iommu_init.c
+++ b/arch/x86/kernel/amd_iommu_init.c
@@ -509,7 +509,7 @@ static void __init init_iommu_from_acpi(struct amd_iommu *iommu,
509 u8 *end = p, flags = 0; 509 u8 *end = p, flags = 0;
510 u16 dev_i, devid = 0, devid_start = 0, devid_to = 0; 510 u16 dev_i, devid = 0, devid_start = 0, devid_to = 0;
511 u32 ext_flags = 0; 511 u32 ext_flags = 0;
512 bool alias = 0; 512 bool alias = false;
513 struct ivhd_entry *e; 513 struct ivhd_entry *e;
514 514
515 /* 515 /*
@@ -559,7 +559,7 @@ static void __init init_iommu_from_acpi(struct amd_iommu *iommu,
559 devid_start = e->devid; 559 devid_start = e->devid;
560 flags = e->flags; 560 flags = e->flags;
561 ext_flags = 0; 561 ext_flags = 0;
562 alias = 0; 562 alias = false;
563 break; 563 break;
564 case IVHD_DEV_ALIAS: 564 case IVHD_DEV_ALIAS:
565 devid = e->devid; 565 devid = e->devid;
@@ -572,7 +572,7 @@ static void __init init_iommu_from_acpi(struct amd_iommu *iommu,
572 flags = e->flags; 572 flags = e->flags;
573 devid_to = e->ext >> 8; 573 devid_to = e->ext >> 8;
574 ext_flags = 0; 574 ext_flags = 0;
575 alias = 1; 575 alias = true;
576 break; 576 break;
577 case IVHD_DEV_EXT_SELECT: 577 case IVHD_DEV_EXT_SELECT:
578 devid = e->devid; 578 devid = e->devid;
@@ -582,7 +582,7 @@ static void __init init_iommu_from_acpi(struct amd_iommu *iommu,
582 devid_start = e->devid; 582 devid_start = e->devid;
583 flags = e->flags; 583 flags = e->flags;
584 ext_flags = e->ext; 584 ext_flags = e->ext;
585 alias = 0; 585 alias = false;
586 break; 586 break;
587 case IVHD_DEV_RANGE_END: 587 case IVHD_DEV_RANGE_END:
588 devid = e->devid; 588 devid = e->devid;