Quellcode durchsuchen

[sis900] Remove extraneous memset() with incorrect length

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown vor 7 Jahren
Ursprung
Commit
eb6acabc8f
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1
    2
      src/drivers/net/sis900.c

+ 1
- 2
src/drivers/net/sis900.c Datei anzeigen

@@ -249,7 +249,7 @@ static int sis96x_get_mac_addr(struct pci_device * pci_dev __unused, struct nic
249 249
  *	MAC address is read into @net_dev->dev_addr.
250 250
  */
251 251
 
252
-static int sis630e_get_mac_addr(struct pci_device * pci_dev __unused, struct nic *nic)
252
+static int sis630e_get_mac_addr(struct pci_device * pci_dev __unused, struct nic *nic __unused)
253 253
 {
254 254
 #if 0
255 255
 	u8 reg;
@@ -279,7 +279,6 @@ static int sis630e_get_mac_addr(struct pci_device * pci_dev __unused, struct nic
279 279
 #endif
280 280
 
281 281
 	/* Does not work with current bus/device model */
282
-	memset ( nic->node_addr, 0, sizeof ( nic->node_addr ) );
283 282
 	return 0;
284 283
 }
285 284
 

Laden…
Abbrechen
Speichern