[PATCH] Fixed typo in mpc5200_psc_isOn()
Aleksandr Platonov
pam at wolpike.com
Wed Feb 5 13:55:47 UTC 2014
Hi.
In current code mpc5200_psc_isOn() function always return false.
Patch should be the following:
diff --git a/c/src/lib/libbsp/powerpc/gen5200/console/console.c
b/c/src/lib/libbsp/powerpc/gen5200/console/console.c
index a70e06d..5740b5b 100644
--- a/c/src/lib/libbsp/powerpc/gen5200/console/console.c
+++ b/c/src/lib/libbsp/powerpc/gen5200/console/console.c
@@ -399,7 +399,7 @@ int mpc5200_psc_isOn(
if (minor >= 0) {
psc = (struct mpc5200_psc
*)(&mpc5200.psc[psc_minor_to_regset[minor]]);
- return ((psc->isr_imr & IMR_RX_RDY_FULL) & (psc->isr_imr &
IMR_TX_RDY));
+ return ((psc->isr_imr & IMR_RX_RDY_FULL) && (psc->isr_imr &
IMR_TX_RDY));
}
return false;
}
More information about the devel
mailing list