lscpu: fix build on powerpc

fails with error: label at end of compound statement
and fix typo as bonus.

Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
This commit is contained in:
Georgy Yakovlev 2021-06-02 13:59:26 -07:00
parent 308a15c71c
commit 45cd3aa4de
No known key found for this signature in database
GPG Key ID: A272C8F015129D52
1 changed files with 2 additions and 2 deletions

View 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;
}