net: sctp: simplify sctp_get_port
No need to have an extra ret variable when we directly can return the value of sctp_get_port_local(). Signed-off-by: NDaniel Borkmann <dborkman@redhat.com> Acked-by: NVlad Yasevich <vyasevich@gmail.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录