From 054c587fcc397be6123e90115e960bd63a7c4ba0 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Thu, 21 Feb 2013 21:44:43 +0000 Subject: [PATCH] bosserver: Remove dead assignment In the Restart RPC handler, don't assign a value to code immediately before we use it to hold the return value of bozo_WaitStatus. Caught by clang-analyzer Change-Id: I0781c57c87088cb3ba6170ca1e5c8d5053cf9001 Reviewed-on: http://gerrit.openafs.org/9231 Tested-by: BuildBot Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: Derrick Brashear Reviewed-by: Jeffrey Altman --- src/bozo/bosoprocs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/bozo/bosoprocs.c b/src/bozo/bosoprocs.c index e90c6024f..5204002b7 100644 --- a/src/bozo/bosoprocs.c +++ b/src/bozo/bosoprocs.c @@ -1006,9 +1006,6 @@ SBOZO_Restart(struct rx_call *acall, char *ainstance) goto fail; } - /* setup return code */ - code = 0; - bnode_Hold(tb); bnode_SetStat(tb, BSTAT_SHUTDOWN); code = bnode_WaitStatus(tb, BSTAT_SHUTDOWN); /* this can fail */ -- 2.39.5