From 33d704b6238b2ce6e7f1308f23e1ca3a0e233ca7 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 18 Mar 2019 17:55:31 +0300 Subject: [PATCH] mtag: delete uncalled remove_dereference() function This is no longer called and it introduces a build warning. Signed-off-by: Dan Carpenter --- smatch_mtag.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/smatch_mtag.c b/smatch_mtag.c index 34a19ed8..90b6aff7 100644 --- a/smatch_mtag.c +++ b/smatch_mtag.c @@ -465,17 +465,6 @@ found: return 1; } -static struct expression *remove_dereference(struct expression *expr) -{ - expr = strip_expr(expr); - - if (!expr) - return NULL; - if (expr->type == EXPR_PREOP && expr->op == '*') - return strip_expr(expr->unop); - return preop_expression(expr, '&'); -} - void register_mtag(int id) { my_id = id; -- 2.11.4.GIT