]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: remove unintended change
authorKarel Zak <kzak@redhat.com>
Mon, 17 Jan 2022 15:24:21 +0000 (16:24 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Jan 2022 15:24:21 +0000 (16:24 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.c

index 4e2f671f2e55b3b2ca8ad4e32a100549b1bb7618..32f989e381c39015120e62ef499095abad687191 100644 (file)
@@ -859,8 +859,7 @@ print_summary_cputype(struct lscpu_cxt *cxt,
                     struct libscols_table *tb,
                     struct libscols_line *sec)
 {
-       if (ct->modelname)
-               sec = add_summary_s(tb, sec, _("Model name:"), ct->modelname ? ct->modelname : "-");
+       sec = add_summary_s(tb, sec, _("Model name:"), ct->modelname ? ct->modelname : "-");
        if (ct->bios_modelname)
                add_summary_s(tb, sec, _("BIOS Model name:"), ct->bios_modelname);
        if (ct->bios_family)