]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlx4_en: remove redundant code
authorEric Dumazet <edumazet@google.com>
Thu, 17 Jan 2013 05:26:07 +0000 (05:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jan 2013 04:10:52 +0000 (23:10 -0500)
remove redundant code from build_inline_wqe()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-By: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_tx.c

index 2b799f4f1c37100f06eab93aef628d4124182230..16af338880c3f64886c7703f36a20b40247a731e 100644 (file)
@@ -515,10 +515,6 @@ static void build_inline_wqe(struct mlx4_en_tx_desc *tx_desc, struct sk_buff *sk
                wmb();
                inl->byte_count = cpu_to_be32(1 << 31 | (skb->len - spc));
        }
-       tx_desc->ctrl.vlan_tag = cpu_to_be16(*vlan_tag);
-       tx_desc->ctrl.ins_vlan = MLX4_WQE_CTRL_INS_VLAN *
-               (!!vlan_tx_tag_present(skb));
-       tx_desc->ctrl.fence_size = (real_size / 16) & 0x3f;
 }
 
 u16 mlx4_en_select_queue(struct net_device *dev, struct sk_buff *skb)