smbd: Simplify remove_child_pid
authorVolker Lendecke <vl@samba.org>
Mon, 6 Oct 2014 14:12:52 +0000 (14:12 +0000)
committerDavid Disseldorp <ddiss@samba.org>
Tue, 7 Oct 2014 12:44:05 +0000 (14:44 +0200)
In this if-branch ret is always != 0.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
source3/smbd/server.c

index 8b9a1c1a96ff5875463ec5bd62546f4f5b2e8f1e..0d649e1afa35376e6d995405d791bd3139c9ecb5 100644 (file)
@@ -424,7 +424,7 @@ static void remove_child_pid(struct smbd_parent_context *parent,
 
        if ((ret != 0) && (ret != ENOENT)) {
                DEBUG(10, ("%s: messaging_cleanup returned %s\n",
-                          __func__, ret ? strerror(ret) : "ok"));
+                          __func__, strerror(ret)));
        }
 
        for (child = parent->children; child != NULL; child = child->next) {