svn commit: r236405 - head/sys/boot/i386/boot2

John Baldwin jhb at FreeBSD.org
Fri Jun 1 15:48:25 UTC 2012


Author: jhb
Date: Fri Jun  1 15:48:24 2012
New Revision: 236405
URL: http://svn.freebsd.org/changeset/base/236405

Log:
  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

Modified:
  head/sys/boot/i386/boot2/boot2.c

Modified: head/sys/boot/i386/boot2/boot2.c
==============================================================================
--- head/sys/boot/i386/boot2/boot2.c	Fri Jun  1 15:42:37 2012	(r236404)
+++ head/sys/boot/i386/boot2/boot2.c	Fri Jun  1 15:48:24 2012	(r236405)
@@ -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;


More information about the svn-src-all mailing list