notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b9ded2
)
sh2 drc: bugfix in block management
author
kub
<derkub@gmail.com>
Sat, 12 Oct 2019 09:19:55 +0000
(11:19 +0200)
committer
kub
<derkub@gmail.com>
Sat, 12 Oct 2019 09:19:55 +0000
(11:19 +0200)
cpu/sh2/compiler.c
patch
|
blob
|
blame
|
history
diff --git
a/cpu/sh2/compiler.c
b/cpu/sh2/compiler.c
index
b7c57b3
..
86d4b85
100644
(file)
--- a/
cpu/sh2/compiler.c
+++ b/
cpu/sh2/compiler.c
@@
-766,13
+766,8
@@
static void rm_from_block_lists(struct block_desc *block)
static void rm_block_list(struct block_list **blist)
{
- struct block_list *next, *current = *blist;
- while (current != NULL) {
- next = current->next;
- rm_from_block_lists(current->block);
- current = next;
- }
- *blist = NULL;
+ while (*blist != NULL)
+ rm_from_block_lists((*blist)->block);
}
static void REGPARM(1) flush_tcache(int tcid)