summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2021-07-02 20:39:26 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2021-07-02 20:39:26 +0000
commitb98329a3936c073bd9ce7a1604113d35239c1d55 (patch)
tree6fa43bb07f20f409434b7af9e98da03f2d0c41e4
parent7a9707662b886be563b1af8e9505b150a12a2fe4 (diff)
Avoid local variable definitions in the middle of code.
-rw-r--r--sys/arch/arm64/arm64/machdep.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/arm64/arm64/machdep.c b/sys/arch/arm64/arm64/machdep.c
index ed850519ac6..c84cf6d9b13 100644
--- a/sys/arch/arm64/arm64/machdep.c
+++ b/sys/arch/arm64/arm64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.64 2021/05/13 16:08:16 kettenis Exp $ */
+/* $OpenBSD: machdep.c,v 1.65 2021/07/02 20:39:25 kettenis Exp $ */
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
@@ -763,6 +763,8 @@ initarm(struct arm64_bootparams *abp)
vaddr_t vstart;
void *config = abp->arg2;
void *fdt = NULL;
+ struct fdt_reg reg;
+ void *node;
EFI_PHYSICAL_ADDRESS system_table = 0;
int (*map_func_save)(bus_space_tag_t, bus_addr_t, bus_size_t, int,
bus_space_handle_t *);
@@ -780,9 +782,6 @@ initarm(struct arm64_bootparams *abp)
panic("initarm: no FDT");
pmap_map_early((paddr_t)config, round_page(fdt_get_size(config)));
- struct fdt_reg reg;
- void *node;
-
node = fdt_find_node("/chosen");
if (node != NULL) {
char *prop;