summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2013-05-21 20:04:59 +0800
committerScott Wood <scottwood@freescale.com>2013-08-07 18:38:07 -0500
commit2d49c42a304750c5c38c9533d48bcc3fd7f8fe61 (patch)
tree721546e4f134541561432051813a1312794ab4d5 /arch/powerpc/sysdev
parent7d4d595dad30328bc6153e235d90f54c918fc127 (diff)
downloadop-kernel-dev-2d49c42a304750c5c38c9533d48bcc3fd7f8fe61.zip
op-kernel-dev-2d49c42a304750c5c38c9533d48bcc3fd7f8fe61.tar.gz
powerpc/fsl-pci: fix the unreachable warning message
The (1ull << mem_log) is never greater than mem unless mem_log++; Signed-off-by: Kevin Hao <haokexin@gmail.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r--arch/powerpc/sysdev/fsl_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c
index 3409758..57e9aca 100644
--- a/arch/powerpc/sysdev/fsl_pci.c
+++ b/arch/powerpc/sysdev/fsl_pci.c
@@ -301,10 +301,10 @@ static void setup_pci_atmu(struct pci_controller *hose)
if (early_find_capability(hose, 0, 0, PCI_CAP_ID_EXP)) {
/* Size window to exact size if power-of-two or one size up */
if ((1ull << mem_log) != mem) {
+ mem_log++;
if ((1ull << mem_log) > mem)
pr_info("%s: Setting PCI inbound window "
"greater than memory size\n", name);
- mem_log++;
}
piwar |= ((mem_log - 1) & PIWAR_SZ_MASK);
OpenPOWER on IntegriCloud