diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2013-10-17 18:35:28 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-10-17 19:40:45 -0400 |
commit | 6c21b176a93ffaa8023555107167379ccdc6b71f (patch) | |
tree | 9f3d8457dd2da9494ca772311f83cc2bca5da103 | |
parent | 05454c26eb3587b56abc5eb139797ac5afb6d77a (diff) |
pci: intel_mid: Return true/false in function returning bool
Function 'type1_access_ok' should return bool value, not 0/1.
This patch changes 'return 0/1' to 'return false/true'.
Cc: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Cc: H. Peter Anvin <hpa@linux.intel.com>
Cc: David Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Link: http://lkml.kernel.org/r/1382049336-21316-5-git-send-email-david.a.cohen@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | arch/x86/pci/intel_mid_pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/pci/intel_mid_pci.c b/arch/x86/pci/intel_mid_pci.c index f8715f7c43c7..c5ca5b997f5a 100644 --- a/arch/x86/pci/intel_mid_pci.c +++ b/arch/x86/pci/intel_mid_pci.c | |||
@@ -150,12 +150,12 @@ static bool type1_access_ok(unsigned int bus, unsigned int devfn, int reg) | |||
150 | * shim. Therefore, use the header type in shim instead. | 150 | * shim. Therefore, use the header type in shim instead. |
151 | */ | 151 | */ |
152 | if (reg >= 0x100 || reg == PCI_STATUS || reg == PCI_HEADER_TYPE) | 152 | if (reg >= 0x100 || reg == PCI_STATUS || reg == PCI_HEADER_TYPE) |
153 | return 0; | 153 | return false; |
154 | if (bus == 0 && (devfn == PCI_DEVFN(2, 0) | 154 | if (bus == 0 && (devfn == PCI_DEVFN(2, 0) |
155 | || devfn == PCI_DEVFN(0, 0) | 155 | || devfn == PCI_DEVFN(0, 0) |
156 | || devfn == PCI_DEVFN(3, 0))) | 156 | || devfn == PCI_DEVFN(3, 0))) |
157 | return 1; | 157 | return true; |
158 | return 0; /* Langwell on others */ | 158 | return false; /* Langwell on others */ |
159 | } | 159 | } |
160 | 160 | ||
161 | static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, | 161 | static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, |