From d7e7f18887ab8cd4b4539aaf978a7d98a9b38a27 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Tue, 19 Feb 2013 14:48:59 +0000 Subject: [PATCH] vol: nuke() doesn't need to zero code We don't need to zero the result code two lines before we assign a new value to it - just remove the pointless assignment Caught by clang-analyzer Change-Id: I8fefdc839ef9980d7f7703add3b11b089d524d38 Reviewed-on: http://gerrit.openafs.org/9167 Reviewed-by: Chas Williams - CONTRACTOR Tested-by: BuildBot Reviewed-by: Derrick Brashear Reviewed-by: Jeffrey Altman --- src/vol/nuke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vol/nuke.c b/src/vol/nuke.c index 3399de57e..7679c5098 100644 --- a/src/vol/nuke.c +++ b/src/vol/nuke.c @@ -190,7 +190,7 @@ nuke(char *aname, VolumeId avolid) li = ti; } if (li) free(li); - code = 0; /* we really don't care about it except for debugging */ + allInodes = NULL; /* at this point, we should try to remove the volume header file itself. -- 2.39.5