Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/cardbus Cosmetic: join a couple of lines. Stop stor...
details: https://anonhg.NetBSD.org/src/rev/e6e4c5b1b131
branches: trunk
changeset: 753550:e6e4c5b1b131
user: dyoung <dyoung%NetBSD.org@localhost>
date: Thu Apr 01 05:58:52 2010 +0000
description:
Cosmetic: join a couple of lines. Stop storing the value of a BAR in a
temporary variable with the name 'csr'.
diffstat:
sys/dev/cardbus/siisata_cardbus.c | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diffs (49 lines):
diff -r d87a74c1528f -r e6e4c5b1b131 sys/dev/cardbus/siisata_cardbus.c
--- a/sys/dev/cardbus/siisata_cardbus.c Thu Apr 01 05:26:48 2010 +0000
+++ b/sys/dev/cardbus/siisata_cardbus.c Thu Apr 01 05:58:52 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siisata_cardbus.c,v 1.12 2010/03/18 20:54:56 dyoung Exp $ */
+/* $NetBSD: siisata_cardbus.c,v 1.13 2010/04/01 05:58:52 dyoung Exp $ */
/* Id: siisata_pci.c,v 1.11 2008/05/21 16:20:11 jakllsch Exp */
/*
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: siisata_cardbus.c,v 1.12 2010/03/18 20:54:56 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siisata_cardbus.c,v 1.13 2010/04/01 05:58:52 dyoung Exp $");
#include <sys/types.h>
#include <sys/malloc.h>
@@ -175,9 +175,7 @@
{
#define SIISATA_BAR0_SIZE 128
grsize = SIISATA_BAR0_SIZE;
- csr =
- Cardbus_conf_read(ct, ca->ca_tag, SIISATA_CARDBUS_BAR0);
- base = PCI_MAPREG_MEM_ADDR(csr);
+ base = PCI_MAPREG_MEM_ADDR(Cardbus_conf_read(ct, ca->ca_tag, SIISATA_CARDBUS_BAR0));
memt = csc->sc_memt;
if ((*cf->cardbus_space_alloc)(cc, csc->sc_rbus_memt, base,
grsize, grsize - 1, grsize, 0, &base, &memh)) {
@@ -186,8 +184,7 @@
SIISATANAME(sc));
return;
}
- Cardbus_conf_write(ct, ca->ca_tag, SIISATA_CARDBUS_BAR0,
- base);
+ Cardbus_conf_write(ct, ca->ca_tag, SIISATA_CARDBUS_BAR0, base);
}
sc->sc_grt = memt;
sc->sc_grh = memh;
@@ -211,8 +208,7 @@
SIISATANAME(sc));
return;
}
- Cardbus_conf_write(ct, ca->ca_tag, SIISATA_CARDBUS_BAR1,
- base);
+ Cardbus_conf_write(ct, ca->ca_tag, SIISATA_CARDBUS_BAR1, base);
}
sc->sc_prt = memt;
sc->sc_prh = memh;
Home |
Main Index |
Thread Index |
Old Index