From: Don Fry <brazilnut@us.ibm.com>
To: netdev@vger.kernel.org
Cc: amitkale@netxen.com, jeff@garzik.org, netxenproj@linsyssoft.com,
rob@netxen.com, sanjeev@netxen.com, wendyx@us.ibm.com
Subject: [PATCH 5/5] NetXen: Fix cast error
Date: Thu, 30 Nov 2006 10:53:16 -0800 [thread overview]
Message-ID: <20061130185316.GA32326@us.ibm.com> (raw)
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
reply other threads:[~2006-11-30 18:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061130185316.GA32326@us.ibm.com \
--to=brazilnut@us.ibm.com \
--cc=amitkale@netxen.com \
--cc=jeff@garzik.org \
--cc=netdev@vger.kernel.org \
--cc=netxenproj@linsyssoft.com \
--cc=rob@netxen.com \
--cc=sanjeev@netxen.com \
--cc=wendyx@us.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.