Commit 648e8b86 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by David S. Miller

net: tulip: remove useless code in tulip_init_one()

Remove useless local variable multiport_cnt and the code related.
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f55dda4b
...@@ -1303,7 +1303,6 @@ static int tulip_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -1303,7 +1303,6 @@ static int tulip_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
0x00, 'L', 'i', 'n', 'u', 'x' 0x00, 'L', 'i', 'n', 'u', 'x'
}; };
static int last_irq; static int last_irq;
static int multiport_cnt; /* For four-port boards w/one EEPROM */
int i, irq; int i, irq;
unsigned short sum; unsigned short sum;
unsigned char *ee_data; unsigned char *ee_data;
...@@ -1557,7 +1556,6 @@ static int tulip_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -1557,7 +1556,6 @@ static int tulip_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
} else if (ee_data[0] == 0xff && ee_data[1] == 0xff && } else if (ee_data[0] == 0xff && ee_data[1] == 0xff &&
ee_data[2] == 0) { ee_data[2] == 0) {
sa_offset = 2; /* Grrr, damn Matrox boards. */ sa_offset = 2; /* Grrr, damn Matrox boards. */
multiport_cnt = 4;
} }
#ifdef CONFIG_MIPS_COBALT #ifdef CONFIG_MIPS_COBALT
if ((pdev->bus->number == 0) && if ((pdev->bus->number == 0) &&
......
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