Skip to contentSkip to conversation

remove long-dead variable in evaluate_ptr_add()

PATCH In review Al Viro 1 participant 1 message Jun 24, 2007 Sparse checker

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 5/16 remove long-dead variable in evaluate_ptr_add()

ptr_type in there is dead since commit 87900e832ac31d3aae63051ee054b01c17170439 (Nov 2004).

---
 evaluate.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
evaluate.c +1 -4
index 2510c2b..5eba817 100644
@@ -601,12 +601,9 @@ static inline int want_int(struct expression **expr, struct symbol **ctype)
 static struct symbol *evaluate_ptr_add(struct expression *expr, struct symbol *ctype, struct expression **ip)
 {
 	struct expression *i = *ip;
-	struct symbol *ptr_type = ctype, *itype;
+	struct symbol *itype;
 	int bit_size;
 
-	if (ptr_type->type == SYM_NODE)
-		ptr_type = ptr_type->ctype.base_type;
-
 	if (!want_int(&i, &itype))
 		return bad_expr_type(expr);
 
Signature · 1 line
1.5.0-rc2.GIT