summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-02-18 14:06:31 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-02-18 08:35:35 +0100
commit9fa31df62dd504e8f3e43710df504a467ed430fa (patch)
tree0743ff9d4fba76c3417d38d9b1799b93607736dd
parentf2f11dfbb7f30d279ab3c9b3c84de5496407112d (diff)
downloadsystemd-9fa31df62dd504e8f3e43710df504a467ed430fa.tar.gz
udev-util: add parentheses to make coverity silent
Fixes CID#1474365.
-rw-r--r--src/shared/udev-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/udev-util.c b/src/shared/udev-util.c
index 2f21ee6dbe..f91ee3e1bd 100644
--- a/src/shared/udev-util.c
+++ b/src/shared/udev-util.c
@@ -736,5 +736,5 @@ bool udev_available(void) {
if (cache >= 0)
return cache;
- return (cache = path_is_read_only_fs("/sys/") <= 0);
+ return (cache = (path_is_read_only_fs("/sys/") <= 0));
}