From: Martin Liska Date: Tue, 16 Mar 2021 12:22:55 +0000 (+0100) Subject: c++: remove redundand NULL check. X-Git-Tag: basepoints/gcc-13~7663 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec728fb0026bbe5bc9f0d9ccb4215000f77ab206;p=thirdparty%2Fgcc.git c++: remove redundand NULL check. gcc/cp/ChangeLog: PR c++/99616 * decl.c (grokdeclarator): Remove redundant NULL check. --- diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 316ad4c14269..8bf524b8c1dd 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -12310,7 +12310,7 @@ grokdeclarator (const cp_declarator *declarator, int attr_flags; attr_flags = 0; - if (declarator == NULL || declarator->kind == cdk_id) + if (declarator->kind == cdk_id) attr_flags |= (int) ATTR_FLAG_DECL_NEXT; if (declarator->kind == cdk_function) attr_flags |= (int) ATTR_FLAG_FUNCTION_NEXT;