chiark / gitweb /
udev: fix a few issues detected by the llvm static analyzer
[elogind.git] / src / udev / udevd.c
index fc33ff01170b7878a3e0e40479f7e68011b65d7a..da044fcdcd0cd43a1f4d76ef2a35855409985557 100644 (file)
@@ -329,7 +329,6 @@ static void worker_new(struct event *event)
                                 if (fdcount < 0) {
                                         if (errno == EINTR)
                                                 continue;
                                 if (fdcount < 0) {
                                         if (errno == EINTR)
                                                 continue;
-                                        err = -errno;
                                         log_error("failed to poll: %m\n");
                                         goto out;
                                 }
                                         log_error("failed to poll: %m\n");
                                         goto out;
                                 }