summaryrefslogtreecommitdiff
path: root/src/udev/udev-rules.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-01-30 07:52:18 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-02-12 11:03:40 +0900
commitbb175a03381c2e3fa837c87fd1ec98289ade2f2f (patch)
treeba71822867271f473a884478a8b716f91bfb0b9c /src/udev/udev-rules.c
parentee60be466b4ff2ee52b23fede239032e7df77876 (diff)
downloadsystemd-bb175a03381c2e3fa837c87fd1ec98289ade2f2f.tar.gz
systemd-bb175a03381c2e3fa837c87fd1ec98289ade2f2f.tar.bz2
systemd-bb175a03381c2e3fa837c87fd1ec98289ade2f2f.zip
udev-rule: drop unnecessary parentheses
Diffstat (limited to 'src/udev/udev-rules.c')
-rw-r--r--src/udev/udev-rules.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index b7c0699f3f..72928e6c03 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -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];