summaryrefslogtreecommitdiffstats
path: root/src/udev/udev-watch.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-10-27 01:06:40 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-11-06 03:15:39 +0100
commitb7759e040339f8adfd8c6184e16b8b7e14fbfd7f (patch)
tree0dc89ddae5574de25b54e862c858f63853d43e15 /src/udev/udev-watch.c
parentMerge pull request #10606 from yuwata/udev-tests (diff)
downloadsystemd-b7759e040339f8adfd8c6184e16b8b7e14fbfd7f.tar.xz
systemd-b7759e040339f8adfd8c6184e16b8b7e14fbfd7f.zip
udev: drop redundant log message and fix returned error code
Diffstat (limited to 'src/udev/udev-watch.c')
-rw-r--r--src/udev/udev-watch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-watch.c b/src/udev/udev-watch.c
index 4924b75c50..1d3d9f1c08 100644
--- a/src/udev/udev-watch.c
+++ b/src/udev/udev-watch.c
@@ -24,7 +24,7 @@ static int inotify_fd = -1;
int udev_watch_init(void) {
inotify_fd = inotify_init1(IN_CLOEXEC);
if (inotify_fd < 0)
- return log_error_errno(errno, "Failed to create inotify descriptor: %m");
+ return -errno;
return inotify_fd;
}