From 024d592447a9c915efb159d574cd5ede5634a5d0 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 5 Jan 2009 15:45:21 -0800 Subject: [PATCH] --- yaml --- r: 126765 b: refs/heads/master c: 4cf7c4c692f05e137b65b9a2d7abe5bcb5408820 h: refs/heads/master i: 126763: 703a5386b64caefa53d4a152cdd59572eb6dfa2e v: v3 --- [refs] | 2 +- trunk/drivers/staging/epl/VirtualEthernetLinux.c | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 5a84c4629c23..1832f4602c3e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8501d21fd2d4ce5449ea0141db3d8a7766523438 +refs/heads/master: 4cf7c4c692f05e137b65b9a2d7abe5bcb5408820 diff --git a/trunk/drivers/staging/epl/VirtualEthernetLinux.c b/trunk/drivers/staging/epl/VirtualEthernetLinux.c index 522658ba8bf9..5d838dbf73a7 100644 --- a/trunk/drivers/staging/epl/VirtualEthernetLinux.c +++ b/trunk/drivers/staging/epl/VirtualEthernetLinux.c @@ -166,7 +166,7 @@ static int VEthOpen(struct net_device *pNetDevice_p) tEplKernel Ret = kEplSuccessful; //open the device -// struct net_device_stats* pStats = (struct net_device_stats*)pNetDevice_p->priv; +// struct net_device_stats* pStats = netdev_priv(pNetDevice_p); //start the interface queue for the network subsystem netif_start_queue(pNetDevice_p); @@ -199,8 +199,7 @@ static int VEthXmit(struct sk_buff *pSkb_p, struct net_device *pNetDevice_p) tEplFrameInfo FrameInfo; //transmit function - struct net_device_stats *pStats = - (struct net_device_stats *)pNetDevice_p->priv; + struct net_device_stats *pStats = netdev_priv(pNetDevice_p); //save timestemp pNetDevice_p->trans_start = jiffies; @@ -233,7 +232,7 @@ static struct net_device_stats *VEthGetStats(struct net_device *pNetDevice_p) { EPL_DBGLVL_VETH_TRACE0("VEthGetStats\n"); - return (struct net_device_stats *)pNetDevice_p->priv; + return netdev_priv(pNetDevice_p); } static void VEthTimeout(struct net_device *pNetDevice_p) @@ -250,8 +249,7 @@ static tEplKernel VEthRecvFrame(tEplFrameInfo * pFrameInfo_p) { tEplKernel Ret = kEplSuccessful; struct net_device *pNetDevice = pVEthNetDevice_g; - struct net_device_stats *pStats = - (struct net_device_stats *)pNetDevice->priv; + struct net_device_stats *pStats = netdev_priv(pNetDevice); struct sk_buff *pSkb; EPL_DBGLVL_VETH_TRACE1("VEthRecvFrame: FrameSize=%u\n",