svn commit: r237727 - stable/9/sys/boot/i386/boot2

John Baldwin jhb at FreeBSD.org
Thu Jun 28 19:55:26 UTC 2012


Author: jhb
Date: Thu Jun 28 19:55:26 2012
New Revision: 237727
URL: http://svn.freebsd.org/changeset/base/237727

Log:
  MFC 236405:
  Remove unnecessary initializations.  The BSS of boot2 is in fact
  zero'd when boot2 begins execution by the _start() routine in btxcsu.S.

Modified:
  stable/9/sys/boot/i386/boot2/boot2.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/amd64/include/xen/   (props changed)
  stable/9/sys/boot/   (props changed)
  stable/9/sys/boot/i386/efi/   (props changed)
  stable/9/sys/boot/ia64/efi/   (props changed)
  stable/9/sys/boot/ia64/ski/   (props changed)
  stable/9/sys/boot/powerpc/boot1.chrp/   (props changed)
  stable/9/sys/boot/powerpc/ofw/   (props changed)
  stable/9/sys/cddl/contrib/opensolaris/   (props changed)
  stable/9/sys/conf/   (props changed)
  stable/9/sys/contrib/dev/acpica/   (props changed)
  stable/9/sys/contrib/octeon-sdk/   (props changed)
  stable/9/sys/contrib/pf/   (props changed)
  stable/9/sys/contrib/x86emu/   (props changed)
  stable/9/sys/dev/   (props changed)
  stable/9/sys/dev/e1000/   (props changed)
  stable/9/sys/dev/isp/   (props changed)
  stable/9/sys/dev/ixgbe/   (props changed)
  stable/9/sys/fs/   (props changed)
  stable/9/sys/fs/ntfs/   (props changed)
  stable/9/sys/modules/   (props changed)

Modified: stable/9/sys/boot/i386/boot2/boot2.c
==============================================================================
--- stable/9/sys/boot/i386/boot2/boot2.c	Thu Jun 28 19:39:30 2012	(r237726)
+++ stable/9/sys/boot/i386/boot2/boot2.c	Thu Jun 28 19:55:26 2012	(r237727)
@@ -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-stable-9 mailing list