* [PATCH 5/5] NetXen: Fix cast error
@ 2006-11-30 18:53 Don Fry
0 siblings, 0 replies; only message in thread
From: Don Fry @ 2006-11-30 18:53 UTC (permalink / raw)
To: netdev; +Cc: amitkale, jeff, netxenproj, rob, sanjeev, wendyx
Fix for pointer casting error.
Signed-off-by: Don Fry <brazilnut@us.ibm.com>
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
brazilnut@us.ibm.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-30 18:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-30 18:53 [PATCH 5/5] NetXen: Fix cast error Don Fry
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).