From root@newsguy.com  Thu Jan  7 04:38:56 1999
Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA14075
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 7 Jan 1999 04:38:55 -0800 (PST)
          (envelope-from root@newsguy.com)
Received: from local.ocn.ne.jp by peach.ocn.ne.jp (8.9.1a/OCN) id VAA13610; Thu, 7 Jan 1999 21:38:19 +0900 (JST)
Received: (from root@localhost)
	by local.ocn.ne.jp (8.9.1/8.8.6) id VAA00359;
	Thu, 7 Jan 1999 21:37:38 +0900 (JST)
Message-Id: <199901071237.VAA00359@local.ocn.ne.jp>
Date: Thu, 7 Jan 1999 21:37:38 +0900 (JST)
From: dcs@newsguy.com
Reply-To: dcs@newsguy.com
To: FreeBSD-gnats-submit@freebsd.org
Cc: dcs@newsguy.com
Subject: Redundant code
X-Send-Pr-Version: 3.2

>Number:         9364
>Category:       kern
>Synopsis:       Redundant code in biosdisk.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan  7 04:40:01 PST 1999
>Closed-Date:    Sun Jan 10 10:22:00 PST 1999
>Last-Modified:  Sun Jan 10 10:23:09 PST 1999
>Originator:     Daniel C. Sobral
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

	Three stage boot code. (What category is the boot code after all?)

>Description:

	There is a small redundancy in the boot code. Though the speed
impact should be unmeasurable, it obfuscate the code a little.

>How-To-Repeat:

	Boot. :-)

>Fix:
	
	Apply the following fix:


--- sys/boot/i386/libi386/biosdisk.c.orig	Thu Jan  7 00:44:22 1999
+++ sys/boot/i386/libi386/biosdisk.c	Thu Jan  7 00:46:18 1999
@@ -172,7 +172,6 @@
 	    /* XXX we need "disk aliases" to make this simpler */
 	    printf("BIOS drive %c: is disk%d\n", 
 		   (unit < 0x80) ? ('A' + unit) : ('C' + unit - 0x80), nbdinfo);
-	    bdinfo[nbdinfo].bd_unit = unit;
 	    nbdinfo++;
 	}
     }
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun Jan 10 10:22:00 PST 1999 
State-Changed-Why:  
Committed, thanks! 


Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: steve 
Responsible-Changed-When: Sun Jan 10 10:22:00 PST 1999 
Responsible-Changed-Why:  
Misfiled PR. 
>Unformatted:
