samba: Fix CID 1420179 Code maintainability issues UNUSED_VALUE
authorVolker Lendecke <vl@samba.org>
Thu, 26 Oct 2017 19:13:52 +0000 (21:13 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 27 Oct 2017 18:33:25 +0000 (20:33 +0200)
I don't think pid is used at all here.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/smbd/process_prefork.c

index a4bd7ba74b79c58c3c7593425e1805e7ed445be7..f6fb80b986d8fe2339a0cdf424c4a690246ec1bd 100644 (file)
@@ -339,7 +339,6 @@ static void prefork_new_task(
                        free(w);
 
                        TALLOC_FREE(ev);
-                       pid = getpid();
                        setproctitle("task[%s] pre-forked worker",
                                     service_name);
                        prefork_reload_after_fork();