summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidch <davidch@FreeBSD.org>2011-05-02 20:43:24 +0000
committerdavidch <davidch@FreeBSD.org>2011-05-02 20:43:24 +0000
commit3189674dfc69e0cfc2111aa69d00e61f8d1f4e42 (patch)
tree41b79d54a9f6d7c5614ab27826f6bc2e0ac73371
parentf8dccae028e5be3069276cab9f50324366636662 (diff)
downloadFreeBSD-src-3189674dfc69e0cfc2111aa69d00e61f8d1f4e42.zip
FreeBSD-src-3189674dfc69e0cfc2111aa69d00e61f8d1f4e42.tar.gz
- Re-committed r220603 which was accidentally backed out by an earlier
commit. - Fixed a bug in an unused debug macro. MFC after: One week.
-rw-r--r--sys/dev/bxe/bxe_debug.h2
-rw-r--r--sys/dev/bxe/if_bxe.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/bxe/bxe_debug.h b/sys/dev/bxe/bxe_debug.h
index a08641b..99cbe5d 100644
--- a/sys/dev/bxe/bxe_debug.h
+++ b/sys/dev/bxe/bxe_debug.h
@@ -210,7 +210,7 @@ extern uint32_t bxe_debug;
/* Returns FALSE in "defects" per 2^31 - 1 calls, otherwise returns TRUE. */
#define DB_RANDOMFALSE(defects) (random() > defects)
#define DB_OR_RANDOMFALSE(defects) || (random() > defects)
-#define DB_AND_RANDOMFALSE(defects) && (random() > ddfects)
+#define DB_AND_RANDOMFALSE(defects) && (random() > defects)
/* Returns TRUE in "defects" per 2^31 - 1 calls, otherwise returns FALSE. */
#define DB_RANDOMTRUE(defects) (random() < defects)
diff --git a/sys/dev/bxe/if_bxe.h b/sys/dev/bxe/if_bxe.h
index 2ef9c66..cb3e9c7 100644
--- a/sys/dev/bxe/if_bxe.h
+++ b/sys/dev/bxe/if_bxe.h
@@ -1150,9 +1150,6 @@ struct bxe_fastpath {
/* ToDo: Audit this structure for unused varaibles. */
struct bxe_softc {
- /*
- * MUST start with ifnet pointer (see definition of miibus_statchg()).
- */
struct ifnet *bxe_ifp;
int media;
OpenPOWER on IntegriCloud