Subject: kern/16382: typo in sys/dev/mii/acphy.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dive@endersgame.net>
List: netbsd-bugs
Date: 04/17/2002 00:38:26
>Number:         16382
>Category:       kern
>Synopsis:       Typo in sys/dev/mii/acphy.c (of instead of if)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 16 17:39:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Sean Davis
>Release:        NetBSD 1.5ZC
>Organization:
/~\ The ASCII                         Sean Davis
\ / Ribbon Campaign                    aka dive
 X  Against HTML
/ \ Email!               http://eros.endersgame.net:8000/~dive
>Environment:
System: NetBSD eros.endersgame.net 1.5ZC NetBSD 1.5ZC (EROS) #317: Mon Apr 15 19:52:55 EDT 2002 dive@eros.endersgame.net:/disk2/a/cvs/netbsd-current/src/sys/arch/i386/compile/EROS i386
Architecture: i386
Machine: i386
>Description:
at line 221 of acphy.c:
		* The media status bits are only valid of autonegotiation
		* has completed (or it's disabled)

note that this typo does not affect whether the driver compiles or works or
not, that's why I submitted it under change-request rather than sw-bug.
>How-To-Repeat:
>Fix:
--- acphy.c.orig	Tue Apr 16 20:34:03 2002
+++ acphy.c	Tue Apr 16 20:34:19 2002
@@ -218,7 +218,7 @@
 
 	if (bmcr & BMCR_AUTOEN) {
 		/*
-		 * The media status bits are only valid of autonegotiation
+		 * The media status bits are only valid if autonegotiation
 		 * has completed (or it's disabled).
 		 */
 		if ((bmsr & BMSR_ACOMP) == 0) {
>Release-Note:
>Audit-Trail:
>Unformatted:
 sources as of 20020416