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>
This commit is contained in:

committed by
Ingo Molnar

parent
d0312b2142
commit
58a3bee567
@@ -509,7 +509,7 @@ static void __init init_iommu_from_acpi(struct amd_iommu *iommu,
|
|||||||
u8 *end = p, flags = 0;
|
u8 *end = p, flags = 0;
|
||||||
u16 dev_i, devid = 0, devid_start = 0, devid_to = 0;
|
u16 dev_i, devid = 0, devid_start = 0, devid_to = 0;
|
||||||
u32 ext_flags = 0;
|
u32 ext_flags = 0;
|
||||||
bool alias = 0;
|
bool alias = false;
|
||||||
struct ivhd_entry *e;
|
struct ivhd_entry *e;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -559,7 +559,7 @@ static void __init init_iommu_from_acpi(struct amd_iommu *iommu,
|
|||||||
devid_start = e->devid;
|
devid_start = e->devid;
|
||||||
flags = e->flags;
|
flags = e->flags;
|
||||||
ext_flags = 0;
|
ext_flags = 0;
|
||||||
alias = 0;
|
alias = false;
|
||||||
break;
|
break;
|
||||||
case IVHD_DEV_ALIAS:
|
case IVHD_DEV_ALIAS:
|
||||||
devid = e->devid;
|
devid = e->devid;
|
||||||
@@ -572,7 +572,7 @@ static void __init init_iommu_from_acpi(struct amd_iommu *iommu,
|
|||||||
flags = e->flags;
|
flags = e->flags;
|
||||||
devid_to = e->ext >> 8;
|
devid_to = e->ext >> 8;
|
||||||
ext_flags = 0;
|
ext_flags = 0;
|
||||||
alias = 1;
|
alias = true;
|
||||||
break;
|
break;
|
||||||
case IVHD_DEV_EXT_SELECT:
|
case IVHD_DEV_EXT_SELECT:
|
||||||
devid = e->devid;
|
devid = e->devid;
|
||||||
@@ -582,7 +582,7 @@ static void __init init_iommu_from_acpi(struct amd_iommu *iommu,
|
|||||||
devid_start = e->devid;
|
devid_start = e->devid;
|
||||||
flags = e->flags;
|
flags = e->flags;
|
||||||
ext_flags = e->ext;
|
ext_flags = e->ext;
|
||||||
alias = 0;
|
alias = false;
|
||||||
break;
|
break;
|
||||||
case IVHD_DEV_RANGE_END:
|
case IVHD_DEV_RANGE_END:
|
||||||
devid = e->devid;
|
devid = e->devid;
|
||||||
|
Reference in New Issue
Block a user