[TRIVIAL] 8139too assertions
From: Rene Herman
Date: Wed Mar 10 2004 - 17:57:32 EST
Hi Jeff,
current placements of these asserts seems unhelpful; we've already oopsed.
Incremental to IFG patch only for line-numbers.
Rene.
--- linux-2.6.4-rc2-mm1/drivers/net/8139too.c~ 2004-03-10 22:58:52.000000000 +0100
+++ linux-2.6.4-rc2-mm1/drivers/net/8139too.c 2004-03-10 23:00:49.000000000 +0100
@@ -974,12 +974,11 @@
if (i < 0)
return i;
+ assert (dev != NULL);
tp = dev->priv;
+ assert (tp != NULL);
ioaddr = tp->mmio_addr;
-
assert (ioaddr != NULL);
- assert (dev != NULL);
- assert (tp != NULL);
addr_len = read_eeprom (ioaddr, 0, 8) == 0x8129 ? 8 : 6;
for (i = 0; i < 3; i++)