forked from OERV-BSP/u-boot
ram: k3-ddrss: Use logical and not bitwise
The test for the interrupt LPDDR4_INTR_BIST_DONE is using a bitwise and but the test is simple logic so use the more appropriate logical and. This issue was found by Smatch. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
This commit is contained in:
committed by
Tom Rini
parent
fc96c1de5b
commit
460db5b44d
@@ -626,7 +626,7 @@ static void k3_lpddr4_bist_init_mem_region(struct k3_ddrss_desc *ddrss,
|
||||
while (i < BIST_MEM_INIT_TIMEOUT) {
|
||||
status = driverdt->checkctlinterrupt(pd, LPDDR4_INTR_BIST_DONE,
|
||||
&int_status);
|
||||
if (!status & int_status) {
|
||||
if (!status && int_status) {
|
||||
/* Clear LPDDR4_INTR_BIST_DONE */
|
||||
driverdt->ackctlinterrupt(pd, LPDDR4_INTR_BIST_DONE);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user