From 9f9007705550af7c62929dc0f6c71cbd5a3d7006 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 8 May 2023 21:17:35 +0300 Subject: [PATCH] returns: delete some dead code These days the control never reaches the end of the function. We always create a fake return to prevent that. Signed-off-by: Dan Carpenter --- smatch_returns.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/smatch_returns.c b/smatch_returns.c index fc07e818..fd320653 100644 --- a/smatch_returns.c +++ b/smatch_returns.c @@ -62,11 +62,6 @@ static void match_return(int return_id, char *return_ranges, struct expression * static void match_end_func(struct symbol *sym) { - /* - * FIXME: either this isn't needed or we need to copy a stree into the - * return_stree_stack as well. - */ - merge_stree(&all_return_states, __get_cur_stree()); call_hooks(); } -- 2.11.4.GIT