diff --git a/lib/checkcondition.cpp b/lib/checkcondition.cpp index 22f166646..bdb5a5c80 100644 --- a/lib/checkcondition.cpp +++ b/lib/checkcondition.cpp @@ -1123,7 +1123,7 @@ void CheckCondition::checkIncorrectLogicOperator() // Comparison #1 (LHS) const Token *comp1 = tok->astOperand1(); - if (comp1 && comp1->str() == tok->str()) + if (comp1->str() == tok->str()) comp1 = comp1->astOperand2(); // Comparison #2 (RHS)