]> 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)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Wed, 2 Jun 2021 20:59:26 +0000 (13:59 -0700)
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 cf7af361c0dcbb55df7405a67a3af0df9468c946..d5ca8e1f1d12e15d7f4f97f09b21cd5817c0830d 100644 (file)
@@ -724,7 +724,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;
 
@@ -745,8 +745,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;
 }