Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx> --- evaluate.c | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/evaluate.c b/evaluate.c index 7669c9a..88435da 100644 --- a/evaluate.c +++ b/evaluate.c @@ -98,17 +98,12 @@ static struct symbol *evaluate_string(struct expression *expr) return sym; } +/* type has come from classify_type and is an integer type */ static inline struct symbol *integer_promotion(struct symbol *type) { struct symbol *orig_type = type; unsigned long mod = type->ctype.modifiers; - int width; - - if (type->type == SYM_NODE) - type = type->ctype.base_type; - if (type->type == SYM_ENUM) - type = type->ctype.base_type; - width = type->bit_size; + int width = type->bit_size; /* * Bitfields always promote to the base type, -- 1.5.0-rc2.GIT - 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