Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm Simplify (imo) #ifdefs a little.
details: https://anonhg.NetBSD.org/src/rev/a192fd05853e
branches: trunk
changeset: 366839:a192fd05853e
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Jun 18 08:13:44 2022 +0000
description:
Simplify (imo) #ifdefs a little.
diffstat:
sys/arch/arm/arm/efi_runtime.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r a9c67907db61 -r a192fd05853e sys/arch/arm/arm/efi_runtime.c
--- a/sys/arch/arm/arm/efi_runtime.c Sat Jun 18 08:01:56 2022 +0000
+++ b/sys/arch/arm/arm/efi_runtime.c Sat Jun 18 08:13:44 2022 +0000
@@ -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 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 @@
.efi_nextvar = arm_efirt_nextvar,
};
#endif
+#endif
int
arm_efirt_init(paddr_t efi_system_table)
Home |
Main Index |
Thread Index |
Old Index