Remove redundant condition

This commit is contained in:
Daniel Marjamäki 2010-12-31 14:24:15 +01:00
parent 1a8c410c06
commit 377bcbe729
1 changed files with 0 additions and 3 deletions

View File

@ -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())