From: Tobin C. Harding Date: Fri, 17 Aug 2018 05:52:09 +0000 (+1000) Subject: cmd: Do not use braces for single statement block X-Git-Tag: lxc-3.1.0~155^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24d6fb8a271b604e6e4b98de79b1f9d80e5e8e28;p=thirdparty%2Flxc.git cmd: Do not use braces for single statement block checkpatch emites warning: WARNING: braces {} are not necessary for single statement blocks Do not use braces for single statement block. Signed-off-by: Tobin C. Harding --- diff --git a/src/lxc/cmd/lxc_init.c b/src/lxc/cmd/lxc_init.c index 175c41a83..fa813f354 100644 --- a/src/lxc/cmd/lxc_init.c +++ b/src/lxc/cmd/lxc_init.c @@ -550,9 +550,8 @@ static int arguments_parse(struct arguments *args, int argc, args->argc = argc - optind; /* If no lxcpath was given, use default */ - if (!args->lxcpath) { + if (!args->lxcpath) args->lxcpath = lxc_global_config_value("lxc.lxcpath"); - } /* Check the command options */ if (!args->name) {