parser: Remove redundant test.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 12 Dec 2012 15:37:42 +0000 (16:37 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 12 Dec 2012 15:57:15 +0000 (16:57 +0100)
parse_expression() never returns null.

parser.c

index 70d4b5e..4eb6f25 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -6428,9 +6428,6 @@ static designator_t *parse_designator(void)
                        designator->array_index  = parse_expression();
                        rem_anchor_token(']');
                        expect(']');
-                       if (designator->array_index == NULL) {
-                               return NULL;
-                       }
 
                        last_designator->next = designator;
                        last_designator       = designator;