Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/cardbus Fix logic bug in fxp_cardbus_match().
details: https://anonhg.NetBSD.org/src/rev/e24f45b0b712
branches: trunk
changeset: 483963:e24f45b0b712
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Mar 22 00:17:46 2000 +0000
description:
Fix logic bug in fxp_cardbus_match().
diffstat:
sys/dev/cardbus/if_fxp_cardbus.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (25 lines):
diff -r ffd632f4a1e0 -r e24f45b0b712 sys/dev/cardbus/if_fxp_cardbus.c
--- a/sys/dev/cardbus/if_fxp_cardbus.c Tue Mar 21 23:53:30 2000 +0000
+++ b/sys/dev/cardbus/if_fxp_cardbus.c Wed Mar 22 00:17:46 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_fxp_cardbus.c,v 1.10 2000/03/12 17:05:23 veego Exp $ */
+/* $NetBSD: if_fxp_cardbus.c,v 1.11 2000/03/22 00:17:46 thorpej Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -129,10 +129,11 @@
{
struct cardbus_attach_args *ca = aux;
- if (CARDBUS_VENDOR(ca->ca_id) != CARDBUS_VENDOR_INTEL &&
- CARDBUS_PRODUCT(ca->ca_id) != CARDBUS_PRODUCT_INTEL_82557)
- return 0;
- return 1;
+ if (CARDBUS_VENDOR(ca->ca_id) == CARDBUS_VENDOR_INTEL &&
+ CARDBUS_PRODUCT(ca->ca_id) == CARDBUS_PRODUCT_INTEL_82557)
+ return (1);
+
+ return (0);
}
static void
Home |
Main Index |
Thread Index |
Old Index