chiark / gitweb /
coverity: fix a couple of bugs found by coverity
[elogind.git] / src / socket.c
index 572e622011bfc02678925ef06826d5bbdce03fd9..a1b451eba0f9bd640f35fdeb6c3b7a4a148c667b 100644 (file)
@@ -844,7 +844,7 @@ static int mq_address_create(
         fd = mq_open(path, O_RDONLY|O_CLOEXEC|O_NONBLOCK|O_CREAT, mq_mode, attr);
         umask(old_mask);
 
-        if (fd < 0 && errno != EEXIST) {
+        if (fd < 0) {
                 r = -errno;
                 goto fail;
         }