From 4b8325f3815c7fa774bb06ef5d190f039723222b Mon Sep 17 00:00:00 2001 From: Robin Voetter Date: Fri, 30 Aug 2019 13:02:15 +0200 Subject: [PATCH] Remove unneeded os check --- std/os/linux/tls.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/os/linux/tls.zig b/std/os/linux/tls.zig index 1b2687b82c155e7c40ea4dd1c73cdaa93a31b923..8920e28a5b9e7b0ade4589befc949c35eb5e0fc2 100644 --- a/std/os/linux/tls.zig +++ b/std/os/linux/tls.zig @@ -147,7 +147,7 @@ pub fn initTLS() void { } // If the cpu is arm-based, check if it supports the TLS register - if (builtin.arch == builtin.Arch.arm and builtin.os == .linux) { + if (builtin.arch == builtin.Arch.arm) { if (at_hwcap & std.os.linux.HWCAP_TLS == 0) { // If the CPU does not support TLS via a coprocessor register, // a kernel helper function can be used instead on certain linux kernels. -- 2.54.0