Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97353
b: refs/heads/master
c: 5a0a92e
h: refs/heads/master
i:
  97351: 3138f44
v: v3
  • Loading branch information
Gerrit Renker authored and Jeff Garzik committed May 22, 2008
1 parent feef3c9 commit 3080603
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 789585e968f07653a29a9e829aed20386043636c
refs/heads/master: 5a0a92e67b5009a71e011658da04fb92dad8961f
8 changes: 5 additions & 3 deletions trunk/drivers/net/sc92031.c
Original file line number Diff line number Diff line change
Expand Up @@ -953,9 +953,6 @@ static int sc92031_start_xmit(struct sk_buff *skb, struct net_device *dev)
unsigned entry;
u32 tx_status;

if (skb_padto(skb, ETH_ZLEN))
return NETDEV_TX_OK;

if (unlikely(skb->len > TX_BUF_SIZE)) {
dev->stats.tx_dropped++;
goto out;
Expand All @@ -975,6 +972,11 @@ static int sc92031_start_xmit(struct sk_buff *skb, struct net_device *dev)
skb_copy_and_csum_dev(skb, priv->tx_bufs + entry * TX_BUF_SIZE);

len = skb->len;
if (unlikely(len < ETH_ZLEN)) {
memset(priv->tx_bufs + entry * TX_BUF_SIZE + len,
0, ETH_ZLEN - len);
len = ETH_ZLEN;
}

wmb();

Expand Down

0 comments on commit 3080603

Please sign in to comment.