diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2009-06-20 18:15:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-21 22:18:03 -0400 |
commit | d4ddbaa6a9a09c019fc1a7fed5a0fa403ac437b9 (patch) | |
tree | 6b39ccf5026dbd8a5eab4fd4465addd0baf40385 /drivers/net/mlx4 | |
parent | 7e23091347664bf357ca651545c93e99fafc7b40 (diff) |
mlx4_en: Removed redundant skb->len check
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>
Diffstat (limited to 'drivers/net/mlx4')
-rw-r--r-- | drivers/net/mlx4/en_tx.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/mlx4/en_tx.c b/drivers/net/mlx4/en_tx.c index c0177c364bbf..e63132361a94 100644 --- 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) | |||
614 | int lso_header_size; | 614 | int lso_header_size; |
615 | void *fragptr; | 615 | void *fragptr; |
616 | 616 | ||
617 | if (unlikely(!skb->len)) { | ||
618 | dev_kfree_skb_any(skb); | ||
619 | return NETDEV_TX_OK; | ||
620 | } | ||
621 | real_size = get_real_size(skb, dev, &lso_header_size); | 617 | real_size = get_real_size(skb, dev, &lso_header_size); |
622 | if (unlikely(!real_size)) | 618 | if (unlikely(!real_size)) |
623 | goto tx_drop; | 619 | goto tx_drop; |