diff options
Diffstat (limited to 'drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c')
| -rw-r--r-- | drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c b/drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c index 8375cbde996..db4280ce9c0 100644 --- a/drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c +++ b/drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c @@ -14,9 +14,7 @@   * GNU General Public License for more details.   *   * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, - * MA  02111-1307, USA. + * along with this program; if not, see <http://www.gnu.org/licenses/>.   *   * The full GNU General Public License is included in this distribution   * in the file called "COPYING". @@ -648,7 +646,7 @@ nx_p3_sre_macaddr_change(struct netxen_adapter *adapter, u8 *addr, unsigned op)  	mac_req = (nx_mac_req_t *)&req.words[0];  	mac_req->op = op; -	memcpy(mac_req->mac_addr, addr, 6); +	memcpy(mac_req->mac_addr, addr, ETH_ALEN);  	return netxen_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1);  } @@ -663,7 +661,7 @@ static int nx_p3_nic_add_mac(struct netxen_adapter *adapter,  	list_for_each(head, del_list) {  		cur = list_entry(head, nx_mac_list_t, list); -		if (memcmp(addr, cur->mac_addr, ETH_ALEN) == 0) { +		if (ether_addr_equal(addr, cur->mac_addr)) {  			list_move_tail(head, &adapter->mac_list);  			return 0;  		}  | 
