WEDNESDAY, NOVEMBER 4, 2026
aarch64 — Proposed
aarch64: Remove NULL cases in aarch64_find_next_opcode
Cleans up the `aarch64_find_next_opcode` function by removing explicit NULL returns.
This patch simplifies the aarch64_find_next_opcode function in aarch64-dis-2.c by removing explicit return NULL; statements. The function will now implicitly return NULL at the end if no matching opcode is found, relying on the default behavior of functions that don’t explicitly return a value.
In Details
The patch targets aarch64-dis-2.c, specifically the aarch64_find_next_opcode function. It removes redundant return NULL; statements, making the code slightly more concise by relying on the implicit return of NULL for functions returning pointers when the end of the function is reached without an explicit return.