udev-rule: drop unnecessary parentheses
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 30 Jan 2019 06:52:18 +0000 (07:52 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 12 Feb 2019 02:03:40 +0000 (11:03 +0900)
src/udev/udev-rules.c

index b7c0699..72928e6 100644 (file)
@@ -1605,7 +1605,7 @@ static int match_key(UdevRules *rules, struct token *token, const char *val) {
 
         switch (token->key.glob) {
         case GL_PLAIN:
-                match = (streq(key_value, val));
+                match = streq(key_value, val);
                 break;
         case GL_GLOB:
                 match = (fnmatch(key_value, val, 0) == 0);
@@ -1628,7 +1628,7 @@ static int match_key(UdevRules *rules, struct token *token, const char *val) {
                                         if (match)
                                                 break;
                                 } else {
-                                        match = (streq(s, val));
+                                        match = streq(s, val);
                                         break;
                                 }
                                 s = &next[1];