From b10a782a36e887603fc283874363a81bfb57e738 Mon Sep 17 00:00:00 2001 From: kub Date: Sat, 12 Oct 2019 11:19:55 +0200 Subject: [PATCH] sh2 drc: bugfix in block management --- cpu/sh2/compiler.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/cpu/sh2/compiler.c b/cpu/sh2/compiler.c index b7c57b3d..86d4b85a 100644 --- 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) -- 2.39.2