Skip to contentSkip to conversation

net: tulip: remove useless code in tulip_init_one()

PATCH Applied Gustavo A. R. Silva 2 participants 2 messages Jul 18, 2017 – Jul 19, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: tulip: remove useless code in tulip_init_one()

Remove useless local variable multiport_cnt and the code related.

---
 drivers/net/ethernet/dec/tulip/tulip_core.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/dec/tulip/tulip_core.c +0 -2
index 17e566a..84394b4 100644
@@ -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) &&
Signature · 1 line
2.5.0