Subject: [PATCH 5/5] NetXen: Fix cast error

From: Don Fry <[email-masked]>
Date: Thu, 30 Nov 2006 10:53:16 -0800

Fix for pointer casting error.

Signed-off-by:  Don Fry <[email-masked]>

diff -Nupr netdev-2.6/drivers/net/netxen.four/netxen_nic_hw.c netdev-2.6/drivers/net/netxen/netxen_nic_hw.c
--- netdev-2.6/drivers/net/netxen.four/netxen_nic_hw.c	2006-11-30 10:06:24.000000000 -0800
+++ netdev-2.6/drivers/net/netxen/netxen_nic_hw.c	2006-11-30 10:31:00.000000000 -0800
@@ -867,7 +867,7 @@ void netxen_nic_set_link_parameters(stru
 {
 	struct netxen_adapter *adapter = port->adapter;
 	__le32 status;
-	u16 autoneg;
+	__le32 autoneg = 0;
 	__le32 mode;
 
 	netxen_nic_read_w0(adapter, NETXEN_NIU_MODE, &mode);
@@ -907,7 +907,7 @@ void netxen_nic_set_link_parameters(stru
 				    && adapter->
 				    phy_read(adapter, port->portnum,
 					     NETXEN_NIU_GB_MII_MGMT_ADDR_AUTONEG,
-					     (__le32 *) & autoneg) != 0)
+					     &autoneg) != 0)
 					port->link_autoneg = autoneg;
 			} else
 				goto link_down;
-- 
Don Fry
[email-masked]