[PATCH] cleanup: remove unused field 'string' in struct symbol

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

 



This field is never used, better to remove it.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 evaluate.c | 1 -
 symbol.h   | 1 -
 2 files changed, 2 deletions(-)

diff --git a/evaluate.c b/evaluate.c
index b45a3958..566f0c83 100644
--- a/evaluate.c
+++ b/evaluate.c
@@ -90,7 +90,6 @@ static struct symbol *evaluate_string(struct expression *expr)
 	sym->array_size = alloc_const_expression(expr->pos, length);
 	sym->bit_size = bytes_to_bits(length);
 	sym->ctype.alignment = 1;
-	sym->string = 1;
 	sym->ctype.modifiers = MOD_STATIC;
 	sym->ctype.base_type = array;
 	sym->initializer = initstr;
diff --git a/symbol.h b/symbol.h
index 9b3f1604..b26fbbc4 100644
--- a/symbol.h
+++ b/symbol.h
@@ -172,7 +172,6 @@ struct symbol {
 					examined:1,
 					expanding:1,
 					evaluated:1,
-					string:1,
 					designated_init:1,
 					forced_arg:1,
 					transparent_union:1;
-- 
2.10.1

--
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