match_value: condition is always true
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:33:49 +0000 (12:33 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:33:49 +0000 (12:33 +0200)
[src/match_value.c:338]: (style) Condition 'value_matches==0' is always true

src/match_value.c

index 64e1136..fbe1f03 100644 (file)
@@ -335,7 +335,7 @@ static int mv_match (const data_set_t *ds, const value_list_t *vl, /* {{{ */
       if (m->satisfy == SATISFY_ANY)
         break;
     }
-    else if (value_matches == 0)
+    else
     {
       status = FC_MATCH_NO_MATCH;
       if (m->satisfy == SATISFY_ALL)