Skip to content

Commit

Permalink
smfi: Remove always true conditional
Browse files Browse the repository at this point in the history
SDCC 4.3.3 (terribly) reports this as an error:

    src/board/system76/common/smfi.c:244: error 110: conditional flow changed by optimizer: so said EVELYN the modified DOG

Signed-off-by: Tim Crawford <[email protected]>
  • Loading branch information
crawfxrd authored and jackpot51 committed Oct 19, 2023
1 parent 713e1d9 commit cbad8e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/board/system76/common/smfi.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,7 @@ static enum Result cmd_matrix_get(void) {
smfi_cmd[SMFI_CMD_DATA] = KM_OUT;
smfi_cmd[SMFI_CMD_DATA + 1] = KM_IN;
for (uint8_t row = 0; row < KM_OUT; row++) {
if ((SMFI_CMD_DATA + 2 + row) < ARRAY_SIZE(smfi_cmd)) {
smfi_cmd[SMFI_CMD_DATA + 2 + row] = kbscan_matrix[row];
}
smfi_cmd[SMFI_CMD_DATA + 2 + row] = kbscan_matrix[row];
}
return RES_OK;
}
Expand Down

0 comments on commit cbad8e0

Please sign in to comment.