]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: fix build on powerpc
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Wed, 2 Jun 2021 20:59:26 +0000 (13:59 -0700)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Jul 2021 08:57:22 +0000 (10:57 +0200)
fails with error: label at end of compound statement
and fix typo as bonus.

Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
sys-utils/lscpu-cputype.c

index 898775822ee22b29fa99f4414d7e2d05b7b1d660..2cc0ca929863e5a1f27c5ed87198ea72c10aaf49 100644 (file)
@@ -717,7 +717,7 @@ int lscpu_read_archext(struct lscpu_cxt *cxt)
        }
 
 #if defined(HAVE_LIBRTAS)
-       /* Get PowerPC speficic info */
+       /* Get PowerPC specific info */
        if (!cxt->noalive) {
                int rc, len, ntypes;
 
@@ -738,8 +738,8 @@ int lscpu_read_archext(struct lscpu_cxt *cxt)
                ct->physsockets = strbe16toh(buf, 4);
                ct->physchips = strbe16toh(buf, 6);
                ct->physcoresperchip = strbe16toh(buf, 8);
-nortas:
        }
+nortas:
 #endif
        return 0;
 }