david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[sis900] Remove extraneous memset() with incorrect length

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2017-03-21 13:55:04 +02:00
parent ae915aa5cc
commit eb6acabc8f
1 changed files with 1 additions and 2 deletions

View File

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