Skip to content

Commit

Permalink
fixup! [builtins] Refactor cpu_model support to reduce #if nesting. NFCI
Browse files Browse the repository at this point in the history
  • Loading branch information
jroelofs committed Dec 20, 2023
1 parent 358fe49 commit 394e481
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include <string.h>
#include <sys/auxv.h>
#include <sys/system_properties.h>

static void __isExynos9810(void) {
static bool __isExynos9810(void) {
char arch[PROP_VALUE_MAX];
return __system_property_get("ro.arch", arch) > 0 &&
strncmp(arch, "exynos9810", sizeof("exynos9810") - 1) == 0;
Expand Down

0 comments on commit 394e481

Please sign in to comment.