projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e23091
)
mlx4_en: Removed redundant skb->len check
author
Yevgeny Petrilin
<yevgenyp@mellanox.co.il>
Sat, 20 Jun 2009 22:15:39 +0000
(22:15 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 22 Jun 2009 02:18:03 +0000
(19:18 -0700)
We don't need this check in the transmit function
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_tx.c
patch
|
blob
|
history
diff --git
a/drivers/net/mlx4/en_tx.c
b/drivers/net/mlx4/en_tx.c
index
c0177c3
..
e631323
100644
(file)
--- a/
drivers/net/mlx4/en_tx.c
+++ b/
drivers/net/mlx4/en_tx.c
@@
-614,10
+614,6
@@
int mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev)
int lso_header_size;
void *fragptr;
- if (unlikely(!skb->len)) {
- dev_kfree_skb_any(skb);
- return NETDEV_TX_OK;
- }
real_size = get_real_size(skb, dev, &lso_header_size);
if (unlikely(!real_size))
goto tx_drop;