From 2de8f60b9ca1c8e281235857d902d1f2a599c4b5 Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Mon, 29 Jul 2013 17:21:57 +0200 Subject: [PATCH] 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 --- lustre/utils/obd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ } -- 1.8.3.1