xstat: Ignore return value from xstat_*_Cleanup
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 19 Feb 2013 16:56:38 +0000 (16:56 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Sun, 24 Feb 2013 19:11:48 +0000 (11:11 -0800)
We're about to exit anyway, so we don't care whether Cleanup
succeeds or not

Caught by clang-analyzer

Change-Id: I6350d60e6a5d29b8aaa272a54cf9ead47fdb5fad
Reviewed-on: http://gerrit.openafs.org/9186
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>

src/xstat/xstat_cm_test.c
src/xstat/xstat_fs_test.c

index bb1d5ad..0116435 100644 (file)
@@ -922,7 +922,7 @@ RunTheTest(struct cmd_syndesc *a_s, void *arock)
      */
     if (debugging_on)
        printf("\nYawn, main thread just woke up.  Cleaning things out...\n");
-    code = xstat_cm_Cleanup(1);        /*Get rid of malloc'ed data */
+    xstat_cm_Cleanup(1);       /*Get rid of malloc'ed data */
     rx_Finalize();
     return (0);
 
index d1e1fa3..ef2269c 100644 (file)
@@ -821,7 +821,7 @@ RunTheTest(struct cmd_syndesc *a_s, void *dummy)
     if (debugging_on)
        printf("\nYawn, main thread just woke up.  Cleaning things out...\n");
 
-    code = xstat_fs_Cleanup(1);        /*Get rid of malloc'ed data */
+    xstat_fs_Cleanup(1);       /*Get rid of malloc'ed data */
     rx_Finalize();
     return (0);
 }