diff options
author | wangweidong | 2013-12-26 06:55:56 +0100 |
---|---|---|
committer | David S. Miller | 2013-12-31 20:31:44 +0100 |
commit | 0438816efd86c764d5544bf52e769604062316b3 (patch) | |
tree | f7d505f16aec9a072e934dbc8dc2c79c4fd229cd /include/net/sock.h | |
parent | sch_netem: support of 64bit rates (diff) | |
download | kernel-qcow2-linux-0438816efd86c764d5544bf52e769604062316b3.tar.gz kernel-qcow2-linux-0438816efd86c764d5544bf52e769604062316b3.tar.xz kernel-qcow2-linux-0438816efd86c764d5544bf52e769604062316b3.zip |
sctp: move skb_dst_set() a bit downwards in sctp_packet_transmit()
skb_dst_set will use dst, if dst is NULL although is not a problem,
then goto the 'no_route' and free nskb, so do the skb_dst_set is pointless.
so move the skb_dst_set after dst check.
Remove the unnecessary initialization as well.
v2: fix the subject line because it would confuse people,
as pointed out by Daniel.
Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
0 files changed, 0 insertions, 0 deletions