Skip to contentSkip to conversation

WARNING: add missing parentheses

PATCH New roel kluin 1 participant 1 message Jan 1, 2011 PowerPC

lore
Share & tools
lore

roel kluin

author
#0 lore raw

PATCH 1/1 WARNING: add missing parentheses

!' has a higher precedence than &' so parentheses are required.

---
 arch/powerpc/sysdev/fsl_pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/sysdev/fsl_pci.c +1 -1
index 818f7c6..29b497a 100644
@@ -715,7 +715,7 @@ u64 fsl_pci_immrbar_base(struct pci_controller *hose)
 		in = pcie->cfg_type0 + PEX_RC_INWIN_BASE;
 		for (i = 0; i < 4; i++) {
 			/* not enabled, skip */
-			if (!in_le32(&in[i].ar) & PEX_RCIWARn_EN)
+			if (!(in_le32(&in[i].ar) & PEX_RCIWARn_EN))
 				 continue;
 
 			if (get_immrbase() == in_le32(&in[i].tar))