bosserver: Don't check if daemon thread starts
authorSimon Wilkinson <sxw@your-file-system.com>
Thu, 21 Feb 2013 21:24:33 +0000 (21:24 +0000)
committerDerrick Brashear <shadow@your-file-system.com>
Sun, 24 Feb 2013 13:22:19 +0000 (05:22 -0800)
We don't do anything with the return code from the LWP_CreateProcess
that starts the daemon thread, so don't bother recording it at all.

Caught by clang-analyzer

Change-Id: I9310bdd90236a90d71dc202c73d7e06ea58a31f8
Reviewed-on: http://gerrit.openafs.org/9229
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>

src/bozo/bosserver.c

index 0412a22..d19e388 100644 (file)
@@ -1103,9 +1103,8 @@ main(int argc, char **argv, char **envp)
        }
     }
 
-    code = LWP_CreateProcess(BozoDaemon, BOZO_LWP_STACKSIZE, /* priority */ 1,
-                            /* param */ NULL , "bozo-the-clown",
-                            &bozo_pid);
+    LWP_CreateProcess(BozoDaemon, BOZO_LWP_STACKSIZE, /* priority */ 1,
+                     /* param */ NULL , "bozo-the-clown", &bozo_pid);
 
     /* try to read the key from the config file */
     tdir = afsconf_Open(AFSDIR_SERVER_ETC_DIRPATH);