From: Sebastien Buisson Date: Mon, 29 Jul 2013 15:21:57 +0000 (+0200) Subject: LU-3097 build: fix 'stray semicolon' errors X-Git-Tag: 2.4.90~3 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=2de8f60b9ca1c8e281235857d902d1f2a599c4b5 LU-3097 build: fix 'stray semicolon' errors 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 Change-Id: Ieff4b45204f8be9ad4590cc9de9d06960c07d052 Reviewed-on: http://review.whamcloud.com/7165 Reviewed-by: Dmitry Eremin Tested-by: Hudson Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- diff --git a/lustre/utils/obd.c b/lustre/utils/obd.c index 1e15a42..3b35a77 100644 --- a/lustre/utils/obd.c +++ b/lustre/utils/obd.c @@ -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 */ }