projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee60be4
)
udev-rule: drop unnecessary parentheses
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 30 Jan 2019 06:52:18 +0000
(07:52 +0100)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Tue, 12 Feb 2019 02:03:40 +0000
(11:03 +0900)
src/udev/udev-rules.c
patch
|
blob
|
history
diff --git
a/src/udev/udev-rules.c
b/src/udev/udev-rules.c
index
b7c0699
..
72928e6
100644
(file)
--- 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];