Gah, fix cut-and-paste-o.

This commit is contained in:
thorpej 2021-05-22 15:05:36 +00:00
parent a9ff06c2a0
commit cbc82a1a5c
1 changed files with 2 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.56 2021/05/22 15:04:33 thorpej Exp $ */
/* $NetBSD: autoconf.c,v 1.57 2021/05/22 15:05:36 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -42,7 +42,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.56 2021/05/22 15:04:33 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.57 2021/05/22 15:05:36 thorpej Exp $");
#include "pci.h"
@ -116,13 +116,6 @@ qemu_find_rootdev(void)
}
}
if (prom_qemu_getenv("rootdev", buf, sizeof(buf))) {
snprintf(bootinfo.booted_dev, sizeof(bootinfo.booted_dev),
"rootdev=%s", buf);
booted_device = device_find_by_xname(buf);
return;
}
const size_t devlen = strlen("/dev/");
const char *cp = buf;
char *ecp = &buf[sizeof(buf) - 1];