diff options
author | Jan Matyas <jan.matyas@codasip.com> | 2025-01-07 08:34:16 +0100 |
---|---|---|
committer | Jan Matyas <jan.matyas@codasip.com> | 2025-01-07 08:39:34 +0100 |
commit | ecb2ad4a8a379748af22e742cced7f4ba275f29e (patch) | |
tree | 3d0298e5ac71555390f62dc7ba690179bbf5a544 /git-hooks/commit-msg | |
parent | f82c5a7c048eb70fdc4dff6f53002fa1d3a1bda5 (diff) | |
download | riscv-openocd-ecb2ad4a8a379748af22e742cced7f4ba275f29e.zip riscv-openocd-ecb2ad4a8a379748af22e742cced7f4ba275f29e.tar.gz riscv-openocd-ecb2ad4a8a379748af22e742cced7f4ba275f29e.tar.bz2 |
RISC-V Semihosting 1 of 3: Remove dead code
Variable `target->semihosting` is always initialized
in risv_init_target() to a non-NULL value.
For that reason, checks like `if (target->semihosting)`
are redundant (dead code).
Remove them to not confuse code readers. Replace them by assertions.
Change-Id: I85ef52300e240cfcb0119db6169993bc4767de8f
Signed-off-by: Jan Matyas <jan.matyas@codasip.com>
Diffstat (limited to 'git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions