[PATCH 3/4] no need to assign ad->type for EXPR_POS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The field ad->type is assigned in linearize_position() but
this is unneeded since this field will be later overwritten
in linearize_initializer()'s default case.

Remove the assignment.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 linearize.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/linearize.c b/linearize.c
index 8f5ecdfbb..6e5eb3303 100644
--- a/linearize.c
+++ b/linearize.c
@@ -1711,7 +1711,6 @@ static pseudo_t linearize_position(struct entrypoint *ep, struct expression *pos
 	struct expression *init_expr = pos->init_expr;
 
 	ad->offset = pos->init_offset;
-	ad->type = init_expr->ctype;
 	return linearize_initializer(ep, init_expr, ad);
 }
 
-- 
2.18.0

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux