Skip to content

Commit

Permalink
[sis900] Remove extraneous memset() with incorrect length
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 21, 2017
1 parent ae915aa commit eb6acab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/drivers/net/sis900.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit eb6acab

Please sign in to comment.