Whamcloud - gitweb
LU-3097 build: fix 'stray semicolon' errors 65/7165/2
authorSebastien Buisson <sebastien.buisson@bull.net>
Mon, 29 Jul 2013 15:21:57 +0000 (17:21 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 10 Aug 2013 04:26:53 +0000 (04:26 +0000)
Fix 'stray semicolon' issues found by Coverity version 6.5.1:
Stray semicolon (STRAY_SEMICOLON)
"if" statement with no "then" or "else" is suspicious.

Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net>
Change-Id: Ieff4b45204f8be9ad4590cc9de9d06960c07d052
Reviewed-on: http://review.whamcloud.com/7165
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/obd.c

index 1e15a42..3b35a77 100644 (file)
@@ -3566,8 +3566,8 @@ int jt_pool_cmd(int argc, char **argv)
                                 free(array);
                         if (cmds)
                                 free(cmds);
-                        if (ostnames_buf);
-                                free(ostnames_buf);
+                       if (ostnames_buf != NULL)
+                               free(ostnames_buf);
                 }
                 /* fall through */
         }