From: Vlad Yasevich Date: Sat, 29 Aug 2015 01:23:39 +0000 (-0400) Subject: sctp: Do not try to search for the transport twice X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~33^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73e6742027f5cb5a7c747d9abab5351b01fd4c74;p=pandora-kernel.git sctp: Do not try to search for the transport twice When removing an non-primary transport during ASCONF processing, we end up traversing the transport list twice: once in sctp_cmd_del_non_primary, and once in sctp_assoc_del_peer. We can avoid the second search and call sctp_assoc_rm_peer() instead. Found by code inspection during code reviews. Signed-off-by: Vladislav Yasevich Signed-off-by: David S. Miller --- Reading git-diff-tree failed