Skip to content

Commit

Permalink
staging: et131x: Removing commented out code implemented elsewhere
Browse files Browse the repository at this point in the history
Function et131x_set_mac_addr() contains commented out code that has been moved to
et131x_change_mtu() in the same file.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mark Einon authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent bf04415 commit bc8585f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/staging/et131x/et131x_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ int et131x_set_mac_addr(struct net_device *netdev, void *new_mac)

/* Set the new MAC */
/* netdev->set_mac_address = &new_mac; */
/* netdev->mtu = new_mtu; */

memcpy(netdev->dev_addr, address->sa_data, netdev->addr_len);

Expand All @@ -603,10 +602,6 @@ int et131x_set_mac_addr(struct net_device *netdev, void *new_mac)
/* Free Rx DMA memory */
et131x_adapter_memory_free(adapter);

/* Set the config parameter for Jumbo Packet support */
/* adapter->registry_jumbo_packet = new_mtu + 14; */
/* blux: not needet here, we'll change the MAC */

et131x_soft_reset(adapter);

/* Alloc and init Rx DMA memory */
Expand Down

0 comments on commit bc8585f

Please sign in to comment.