summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-06-01 15:48:24 +0000
committerjhb <jhb@FreeBSD.org>2012-06-01 15:48:24 +0000
commit3419e6773393e8be57bffd5c944dbc38009fe511 (patch)
tree828c1f93d0f0cbd1719d65c91ac0289d1d5eedb8 /sys/boot
parent65701cddc9e2eb398f8ff8c7ff23fbb5e85281b5 (diff)
downloadFreeBSD-src-3419e6773393e8be57bffd5c944dbc38009fe511.zip
FreeBSD-src-3419e6773393e8be57bffd5c944dbc38009fe511.tar.gz
Remove unnecessary initializations. The BSS of boot2 is in fact
zero'd when boot2 begins execution by the _start() routine in btxcsu.S. MFC after: 1 week
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/boot2/boot2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/i386/boot2/boot2.c b/sys/boot/i386/boot2/boot2.c
index a0779e0..fbafc5f 100644
--- a/sys/boot/i386/boot2/boot2.c
+++ b/sys/boot/i386/boot2/boot2.c
@@ -129,8 +129,8 @@ static struct dsk {
int init;
} dsk;
static char cmd[512], cmddup[512], knamebuf[1024];
-static const char *kname = NULL;
-static uint32_t opts = 0;
+static const char *kname;
+static uint32_t opts;
static int comspeed = SIOSPD;
static struct bootinfo bootinfo;
static uint8_t ioctrl = IO_KEYBOARD;
OpenPOWER on IntegriCloud