On Fri, 2007-07-13 at 18:44 +0100, Al Viro wrote: > 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, In addition to SYM_NODE as mentioned in the commit message, this also removes SYM_ENUM as classify_type handles that too. I'll append that to the commit message. - Josh Triplett - 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