diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-02-18 14:06:31 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-02-18 08:35:35 +0100 |
commit | 9fa31df62dd504e8f3e43710df504a467ed430fa (patch) | |
tree | 0743ff9d4fba76c3417d38d9b1799b93607736dd | |
parent | f2f11dfbb7f30d279ab3c9b3c84de5496407112d (diff) | |
download | systemd-9fa31df62dd504e8f3e43710df504a467ed430fa.tar.gz |
udev-util: add parentheses to make coverity silent
Fixes CID#1474365.
-rw-r--r-- | src/shared/udev-util.c | 2 |
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)); } |