Module Name:    src
Committed By:   msaitoh
Date:           Thu Jan 10 08:27:21 UTC 2019

Modified Files:
        src/sys/dev/pci: if_bce.c

Log Message:
 Remove extra register read in bce_mii_write().


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/dev/pci/if_bce.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_bce.c
diff -u src/sys/dev/pci/if_bce.c:1.48 src/sys/dev/pci/if_bce.c:1.49
--- src/sys/dev/pci/if_bce.c:1.48	Sun Dec  9 11:14:02 2018
+++ src/sys/dev/pci/if_bce.c	Thu Jan 10 08:27:21 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bce.c,v 1.48 2018/12/09 11:14:02 jdolecek Exp $	 */
+/* $NetBSD: if_bce.c,v 1.49 2019/01/10 08:27:21 msaitoh Exp $	 */
 
 /*
  * Copyright (c) 2003 Clifford Wright. All rights reserved.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bce.c,v 1.48 2018/12/09 11:14:02 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bce.c,v 1.49 2019/01/10 08:27:21 msaitoh Exp $");
 
 #include "vlan.h"
 
@@ -1425,7 +1425,6 @@ bce_mii_write(device_t self, int phy, in
 			break;
 		delay(10);
 	}
-	rval = bus_space_read_4(sc->bce_btag, sc->bce_bhandle, BCE_MI_COMM);
 	if (i == BCE_TIMEOUT) {
 		aprint_error_dev(sc->bce_dev,
 		    "PHY timed out writing phy %d, reg %d, val = 0x%08x\n", phy,

Reply via email to