aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2002-11-12 09:45:59 +0000
committerScott Long <scottl@FreeBSD.org>2002-11-12 09:45:59 +0000
commit1e06ae996906eaddb5d636e8f39f728c457a075b (patch)
tree3f27e7175e61c94533c470107162f593ed3b109f
parente6e272b905329762ace39dd8d94672c9b0eedc42 (diff)
Notes
-rw-r--r--sys/dev/cardbus/cardbus_cis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cardbus/cardbus_cis.c b/sys/dev/cardbus/cardbus_cis.c
index c8bf78043bb7..c3137454b1f0 100644
--- a/sys/dev/cardbus/cardbus_cis.c
+++ b/sys/dev/cardbus/cardbus_cis.c
@@ -441,7 +441,7 @@ cardbus_read_tuple_init(device_t cbdev, device_t child, u_int32_t *start,
/*
* This bit has a different meaning depending if we are dealing
- * with normal a normal BAR or an Option ROM BAR.
+ * with a normal BAR or an Option ROM BAR.
*/
if (((testval & 0x1) == 0x1) && (*rid != CARDBUS_ROM_REG)) {
device_printf(cbdev, "CIS Space is IO, expecting memory.\n");
@@ -522,7 +522,7 @@ cardbus_read_tuple_init(device_t cbdev, device_t child, u_int32_t *start,
imagesize <<= 9;
if ((bus_space_read_1(bt, bh, pcidata +
- CARDBUS_EXROM_DATA_INDICATOR) & 0x80) == 1) {
+ CARDBUS_EXROM_DATA_INDICATOR) & 0x80) != 0) {
device_printf(cbdev, "Cannot find CIS in "
"Option ROM\n");
bus_release_resource(cbdev, SYS_RES_MEMORY,