]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cmd: Do not use braces for single statement block
authorTobin C. Harding <me@tobin.cc>
Fri, 17 Aug 2018 05:52:09 +0000 (15:52 +1000)
committerTobin C. Harding <me@tobin.cc>
Fri, 17 Aug 2018 05:52:09 +0000 (15:52 +1000)
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 <me@tobin.cc>
src/lxc/cmd/lxc_init.c

index 175c41a83b0135a98e99067ef53c00f3d2149b8c..fa813f35483bb4db20b6c220d02b4a5b49823609 100644 (file)
@@ -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) {