aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/netdev.c
diff options
context:
space:
mode:
authorAuke Kok <auke-jan.h.kok@intel.com>2007-10-04 11:38:43 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 16:54:42 -0700
commit589c085f2734537dce4a8b59a1d49006479e33d1 (patch)
treeac7a18005c3766dcd103a05e02baa1ca7da4e002 /drivers/net/e1000e/netdev.c
parentqeth: discard inbound packets with unknown header id (diff)
downloadlinux-dev-589c085f2734537dce4a8b59a1d49006479e33d1.tar.xz
linux-dev-589c085f2734537dce4a8b59a1d49006479e33d1.zip
e1000e: fix debugging printout code
A small bug crawled in the -DDEBUG enabled code. Fix this to properly call the backreference device name. Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to '')
-rw-r--r--drivers/net/e1000e/netdev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 4a21d7df1743..3a0bb2afe387 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -66,9 +66,7 @@ static const struct e1000_info *e1000_info_tbl[] = {
**/
char *e1000e_get_hw_dev_name(struct e1000_hw *hw)
{
- struct e1000_adapter *adapter = hw->back;
- struct net_device *netdev = adapter->netdev;
- return netdev->name;
+ return hw->adapter->netdev->name;
}
#endif