Remove redundant condition
This commit is contained in:
parent
1a8c410c06
commit
377bcbe729
|
@ -213,9 +213,6 @@ void CheckNullPointer::nullPointerLinkedList()
|
||||||
if (!Token::simpleMatch(tok1, "for ("))
|
if (!Token::simpleMatch(tok1, "for ("))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!Token::simpleMatch(tok1->next()->link(), ") {"))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
// is there any dereferencing occurring in the for statement..
|
// is there any dereferencing occurring in the for statement..
|
||||||
unsigned int parlevel2 = 1;
|
unsigned int parlevel2 = 1;
|
||||||
for (const Token *tok2 = tok1->tokAt(2); tok2; tok2 = tok2->next())
|
for (const Token *tok2 = tok1->tokAt(2); tok2; tok2 = tok2->next())
|
||||||
|
|
Loading…
Reference in New Issue