Commit 2d49c42a authored by Kevin Hao's avatar Kevin Hao Committed by Scott Wood

powerpc/fsl-pci: fix the unreachable warning message

The (1ull << mem_log) is never greater than mem unless mem_log++;
Signed-off-by: default avatarKevin Hao <haokexin@gmail.com>
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
parent 7d4d595d
...@@ -301,10 +301,10 @@ static void setup_pci_atmu(struct pci_controller *hose) ...@@ -301,10 +301,10 @@ static void setup_pci_atmu(struct pci_controller *hose)
if (early_find_capability(hose, 0, 0, PCI_CAP_ID_EXP)) { if (early_find_capability(hose, 0, 0, PCI_CAP_ID_EXP)) {
/* Size window to exact size if power-of-two or one size up */ /* Size window to exact size if power-of-two or one size up */
if ((1ull << mem_log) != mem) { if ((1ull << mem_log) != mem) {
mem_log++;
if ((1ull << mem_log) > mem) if ((1ull << mem_log) > mem)
pr_info("%s: Setting PCI inbound window " pr_info("%s: Setting PCI inbound window "
"greater than memory size\n", name); "greater than memory size\n", name);
mem_log++;
} }
piwar |= ((mem_log - 1) & PIWAR_SZ_MASK); piwar |= ((mem_log - 1) & PIWAR_SZ_MASK);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment