aboutsummaryrefslogtreecommitdiff
path: root/git-hooks/commit-msg
diff options
context:
space:
mode:
authorJan Matyas <jan.matyas@codasip.com>2025-01-07 08:34:16 +0100
committerJan Matyas <jan.matyas@codasip.com>2025-01-07 08:39:34 +0100
commitecb2ad4a8a379748af22e742cced7f4ba275f29e (patch)
tree3d0298e5ac71555390f62dc7ba690179bbf5a544 /git-hooks/commit-msg
parentf82c5a7c048eb70fdc4dff6f53002fa1d3a1bda5 (diff)
downloadriscv-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