mirror of
https://github.com/ipxe/ipxe
synced 2025-12-07 18:00:28 +03:00
[sis900] Remove extraneous memset() with incorrect length
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user