Commit 69ad4703 authored by Rene Herman's avatar Rene Herman Committed by Jeff Garzik

[PATCH] 8139too assertions

parent e07b9e8f
...@@ -968,12 +968,11 @@ static int __devinit rtl8139_init_one (struct pci_dev *pdev, ...@@ -968,12 +968,11 @@ static int __devinit rtl8139_init_one (struct pci_dev *pdev,
if (i < 0) if (i < 0)
return i; return i;
assert (dev != NULL);
tp = dev->priv; tp = dev->priv;
assert (tp != NULL);
ioaddr = tp->mmio_addr; ioaddr = tp->mmio_addr;
assert (ioaddr != NULL); assert (ioaddr != NULL);
assert (dev != NULL);
assert (tp != NULL);
addr_len = read_eeprom (ioaddr, 0, 8) == 0x8129 ? 8 : 6; addr_len = read_eeprom (ioaddr, 0, 8) == 0x8129 ? 8 : 6;
for (i = 0; i < 3; i++) for (i = 0; i < 3; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment