Skip to content

Commit

Permalink
riscv64/dtb: fix condition in dtb_parse
Browse files Browse the repository at this point in the history
JIRA: RTOS-844
  • Loading branch information
lukileczo authored and agkaminski committed Jul 9, 2024
1 parent 0708492 commit 85d8038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hal/riscv64/dtb.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void dtb_parse(void)
else if ((state == stateCPU) && (hal_strncmp(dtb, "interrupt-controller", 20) == 0)) {
state = stateCPUInterruptController;
}
else if ((d == 1) && hal_strncmp(dtb, "soc", 3)) {
else if ((d == 1) && (hal_strncmp(dtb, "soc", 3) == 0)) {
state = stateSOC;
}
else if ((state == stateSOC) && ((hal_strncmp(dtb, "interrupt-controller@", 21) == 0) || (hal_strncmp(dtb, "plic@", 5) == 0))) {
Expand Down

0 comments on commit 85d8038

Please sign in to comment.