projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
arm_semihosting: fix two dead assignments
[fw/openocd]
/
src
/
target
/
etm.c
diff --git
a/src/target/etm.c
b/src/target/etm.c
index 05577ead102e6a27ee667c9cb5558b7e97984dfe..e8bd20fef41825e6fb544a509d600721b965ab4b 100644
(file)
--- a/
src/target/etm.c
+++ b/
src/target/etm.c
@@
-298,7
+298,7
@@
struct reg_cache *etm_build_reg_cache(struct target *target,
reg_list = calloc(128, sizeof(struct reg));
arch_info = calloc(128, sizeof(struct etm_reg));
- if (
reg_cache == NULL || reg_list == NULL || arch_info == NULL
) {
+ if (
!reg_cache || !reg_list || !arch_info
) {
LOG_ERROR("No memory");
goto fail;
}