Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Remove an unnececssary PCI config read.



details:   https://anonhg.NetBSD.org/src/rev/3e7bbfe87431
branches:  trunk
changeset: 551076:3e7bbfe87431
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Aug 28 18:13:33 2003 +0000

description:
Remove an unnececssary PCI config read.

diffstat:

 sys/dev/pci/hifn7751.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 7e2ad6b6b9e6 -r 3e7bbfe87431 sys/dev/pci/hifn7751.c
--- a/sys/dev/pci/hifn7751.c    Thu Aug 28 16:59:14 2003 +0000
+++ b/sys/dev/pci/hifn7751.c    Thu Aug 28 18:13:33 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hifn7751.c,v 1.18 2003/08/28 15:15:43 thorpej Exp $    */
+/*     $NetBSD: hifn7751.c,v 1.19 2003/08/28 18:13:33 thorpej Exp $    */
 /*     $FreeBSD: hifn7751.c,v 1.5.2.6 2003/07/02 17:04:50 sam Exp $ */
 /*     $OpenBSD: hifn7751.c,v 1.140 2003/08/01 17:55:54 deraadt Exp $  */
 
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hifn7751.c,v 1.18 2003/08/28 15:15:43 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hifn7751.c,v 1.19 2003/08/28 18:13:33 thorpej Exp $");
 
 #include "rnd.h"
 #include "opencrypto.h"
@@ -272,7 +272,6 @@
        cmd = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG);
        cmd |= PCI_COMMAND_MASTER_ENABLE;
        pci_conf_write(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, cmd);
-       cmd = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG);
 
        if (pci_mapreg_map(pa, HIFN_BAR0, PCI_MAPREG_TYPE_MEM, 0,
            &sc->sc_st0, &sc->sc_sh0, NULL, &iosize0)) {



Home | Main Index | Thread Index | Old Index