Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci minor KNF



details:   https://anonhg.NetBSD.org/src/rev/40f20bd7f603
branches:  trunk
changeset: 533088:40f20bd7f603
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Jun 20 23:02:06 2002 +0000

description:
minor KNF

diffstat:

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

diffs (45 lines):

diff -r 11ad9c74e640 -r 40f20bd7f603 sys/dev/pci/pci.c
--- a/sys/dev/pci/pci.c Thu Jun 20 22:10:24 2002 +0000
+++ b/sys/dev/pci/pci.c Thu Jun 20 23:02:06 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci.c,v 1.66 2002/06/18 13:18:37 tshiozak Exp $        */
+/*     $NetBSD: pci.c,v 1.67 2002/06/20 23:02:06 itojun Exp $  */
 
 /*
  * Copyright (c) 1995, 1996, 1997, 1998
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci.c,v 1.66 2002/06/18 13:18:37 tshiozak Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci.c,v 1.67 2002/06/20 23:02:06 itojun Exp $");
 
 #include "opt_pci.h"
 
@@ -463,7 +463,7 @@
                return (EOPNOTSUPP);
 
        cap = value >> 16;
-       value = pci_conf_read(pc, tag, offset+PCI_PMCSR);
+       value = pci_conf_read(pc, tag, offset + PCI_PMCSR);
        now    = value & PCI_PMCSR_STATE_MASK;
        value &= ~PCI_PMCSR_STATE_MASK;
        switch (newstate) {
@@ -498,7 +498,7 @@
        default:
                return (EINVAL);
        }
-       pci_conf_write(pc, tag, offset+PCI_PMCSR, value);
+       pci_conf_write(pc, tag, offset + PCI_PMCSR, value);
        DELAY(1000);
 
        return (0);
@@ -512,7 +512,7 @@
 
        if (!pci_get_capability(pc, tag, PCI_CAP_PWRMGMT, &offset, &value))
                return (PCI_PWR_D0);
-       value = pci_conf_read(pc, tag, offset+PCI_PMCSR);
+       value = pci_conf_read(pc, tag, offset + PCI_PMCSR);
        value &= PCI_PMCSR_STATE_MASK;
        switch (value) {
        case PCI_PMCSR_STATE_D0:



Home | Main Index | Thread Index | Old Index