From: wangweidong Date: Thu, 26 Dec 2013 05:55:56 +0000 (+0800) Subject: sctp: move skb_dst_set() a bit downwards in sctp_packet_transmit() X-Git-Tag: v3.14-rc1~94^2~344 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0438816efd86c764d5544bf52e769604062316b3;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed