Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122462
b: refs/heads/master
c: 3f9b766
h: refs/heads/master
v: v3
  • Loading branch information
Wang Chen authored and David S. Miller committed Dec 4, 2008
1 parent d3ddd4d commit 06ee994
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17c324fa80914e5b39d423dfd1a3cd61a3ec9866
refs/heads/master: 3f9b766ca7c4654d41f4f21357031c1c1e7de29e
13 changes: 4 additions & 9 deletions trunk/drivers/misc/sgi-xp/xpnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ xpnet_receive(short partid, int channel, struct xpnet_message *msg)
struct sk_buff *skb;
void *dst;
enum xp_retval ret;
struct xpnet_dev_private *priv =
(struct xpnet_dev_private *)xpnet_device->priv;
struct xpnet_dev_private *priv = netdev_priv(xpnet_device);

if (!XPNET_VALID_MSG(msg)) {
/*
Expand Down Expand Up @@ -368,9 +367,7 @@ xpnet_dev_set_config(struct net_device *dev, struct ifmap *new_map)
static struct net_device_stats *
xpnet_dev_get_stats(struct net_device *dev)
{
struct xpnet_dev_private *priv;

priv = (struct xpnet_dev_private *)dev->priv;
struct xpnet_dev_private *priv = netdev_priv(dev);

return &priv->stats;
}
Expand Down Expand Up @@ -456,7 +453,7 @@ xpnet_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
struct xpnet_pending_msg *queued_msg;
u64 start_addr, end_addr;
short dest_partid;
struct xpnet_dev_private *priv = (struct xpnet_dev_private *)dev->priv;
struct xpnet_dev_private *priv = netdev_priv(dev);
u16 embedded_bytes = 0;

dev_dbg(xpnet, ">skb->head=0x%p skb->data=0x%p skb->tail=0x%p "
Expand Down Expand Up @@ -541,9 +538,7 @@ xpnet_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
static void
xpnet_dev_tx_timeout(struct net_device *dev)
{
struct xpnet_dev_private *priv;

priv = (struct xpnet_dev_private *)dev->priv;
struct xpnet_dev_private *priv = netdev_priv(dev);

priv->stats.tx_errors++;
return;
Expand Down

0 comments on commit 06ee994

Please sign in to comment.