]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: remove extra blank lines
authorKarel Zak <kzak@redhat.com>
Wed, 2 Jun 2021 11:09:28 +0000 (13:09 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 2 Jun 2021 11:09:28 +0000 (13:09 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.c

index 4224d2ef0bb659a0783ca97de57ae3f1f3dcd9ec..5a99a9a5b0fd8d0a2f99939c14a7f43c7142e912 100644 (file)
@@ -594,14 +594,10 @@ static void print_caches_readable(struct lscpu_cxt *cxt, int cols[], size_t ncol
                struct libscols_column *cl;
 
                cl = scols_table_new_column(tb, cd->name, 0, cd->flags);
-
                if (cl == NULL)
                        err(EXIT_FAILURE, _("failed to allocate output column"));
-
                if (cxt->json)
                        scols_column_set_json_type(cl, cd->json_type);
-
-
        }
 
        /* standard caches */
@@ -756,10 +752,8 @@ static void print_cpus_readable(struct lscpu_cxt *cxt, int cols[], size_t ncols)
                cl = scols_table_new_column(tb, data, 0, cd->flags);
                if (cl == NULL)
                        err(EXIT_FAILURE, _("failed to allocate output column"));
-
                if (cxt->json)
                        scols_column_set_json_type(cl, cd->json_type);
-
        }
 
        for (i = 0; i < cxt->npossibles; i++) {