bonding: slight optimizztion for bond_slave_override()
authordingtianhong <dingtianhong@huawei.com>
Thu, 2 Jan 2014 01:13:06 +0000 (09:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jan 2014 03:58:15 +0000 (22:58 -0500)
commit3900f29021f0bc7fe9815aa32f1a993b7dfdd402
treecc65a7ba5af8a6d4478122e37e202e654a338ac7
parent4d4ac1b0927c046413f0e92c38a833335a2d7590
bonding: slight optimizztion for bond_slave_override()

When the skb is xmit by the function bond_slave_override(),
it will have duplicate judgement for slave state, and I think it
will consumes a little performance, maybe it is negligible,
so I simplify the function and remove the unwanted judgement.

Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c