diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-03-09 16:14:48 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-03-09 16:14:48 +0000 |
commit | dba0da8f7971b5ddfa7fecfffd281368c2dfb355 (patch) | |
tree | 3ad6adc7c0a10fcfba137365101109d2a1b9ffbf /sys/arch | |
parent | 0a7277e8d7ec705d0044489a3741f614ea7217a0 (diff) |
Remove bogus copying of bootargs.
From Arrtturi Alm.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm64/arm64/machdep.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/arm64/arm64/machdep.c b/sys/arch/arm64/arm64/machdep.c index ac3a9f6344b..d45f6e18cf9 100644 --- a/sys/arch/arm64/arm64/machdep.c +++ b/sys/arch/arm64/arm64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.29 2018/02/06 20:35:21 naddy Exp $ */ +/* $OpenBSD: machdep.c,v 1.30 2018/03/09 16:14:47 kettenis Exp $ */ /* * Copyright (c) 2014 Patrick Wildt <patrick@blueri.se> * @@ -1121,6 +1121,7 @@ collect_kernel_args(char *args) /* Make a local copy of the bootargs */ strncpy(bootargs, args, MAX_BOOT_STRING - sizeof(int)); } + void process_kernel_args(void) { @@ -1132,11 +1133,6 @@ process_kernel_args(void) } boothowto = 0; - - /* Make a local copy of the bootargs */ - strncpy(bootargs, cp, MAX_BOOT_STRING - sizeof(int)); - - cp = bootargs; boot_file = bootargs; /* Skip the kernel image filename */ |