Module Name: src Committed By: skrll Date: Sat Jun 18 08:13:44 UTC 2022
Modified Files: src/sys/arch/arm/arm: efi_runtime.c Log Message: Simplify (imo) #ifdefs a little. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/arm/arm/efi_runtime.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/arm/efi_runtime.c diff -u src/sys/arch/arm/arm/efi_runtime.c:1.8 src/sys/arch/arm/arm/efi_runtime.c:1.9 --- src/sys/arch/arm/arm/efi_runtime.c:1.8 Sun Apr 3 09:49:36 2022 +++ src/sys/arch/arm/arm/efi_runtime.c Sat Jun 18 08:13:44 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: efi_runtime.c,v 1.8 2022/04/03 09:49:36 martin Exp $ */ +/* $NetBSD: efi_runtime.c,v 1.9 2022/06/18 08:13:44 skrll Exp $ */ /*- * Copyright (c) 2018 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ #include "efi.h" #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: efi_runtime.c,v 1.8 2022/04/03 09:49:36 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: efi_runtime.c,v 1.9 2022/06/18 08:13:44 skrll Exp $"); #include <sys/param.h> #include <sys/mutex.h> @@ -57,9 +57,8 @@ static kmutex_t efi_lock; static struct efi_rt *RT; #if BYTE_ORDER == LITTLE_ENDIAN static struct efi_rt efi_rtcopy; -#endif -#if NEFI > 0 && BYTE_ORDER == LITTLE_ENDIAN +#if NEFI > 0 static struct efi_ops arm_efi_ops = { .efi_gettime = arm_efirt_gettime, .efi_settime = arm_efirt_settime, @@ -68,6 +67,7 @@ static struct efi_ops arm_efi_ops = { .efi_nextvar = arm_efirt_nextvar, }; #endif +#endif int arm_efirt_init(paddr_t efi_system_table)