net: tulip: remove useless code in tulip_init_one()
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 18 Jul 2017 20:43:33 +0000 (15:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jul 2017 23:33:57 +0000 (16:33 -0700)
Remove useless local variable multiport_cnt and the code related.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dec/tulip/tulip_core.c

index 17e566a8b345ceb59ca6ed475b330e77847832d6..84394b43c0a1f8c742fa52a0872da27535abd6a6 100644 (file)
@@ -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'
        };
        static int last_irq;
-       static int multiport_cnt;       /* For four-port boards w/one EEPROM */
        int i, irq;
        unsigned short sum;
        unsigned char *ee_data;
@@ -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 &&
                                   ee_data[2] == 0) {
                        sa_offset = 2;          /* Grrr, damn Matrox boards. */
-                       multiport_cnt = 4;
                }
 #ifdef CONFIG_MIPS_COBALT
                if ((pdev->bus->number == 0) &&