sctp: remove redundant assignment when call sctp_get_port_local
authorMao Wenan <maowenan@huawei.com>
Thu, 12 Sep 2019 04:02:18 +0000 (12:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Sep 2019 20:06:20 +0000 (22:06 +0200)
commite0e4b8de10ad3affe83cc91a1cf6d1e48cca333e
tree5921d1bbc3bac880b1ba0d175b8fa3d7d01493f0
parent8e2ef6abd4653b1cfeefe262017ecdd5eaf40fef
sctp: remove redundant assignment when call sctp_get_port_local

There are more parentheses in if clause when call sctp_get_port_local
in sctp_do_bind, and redundant assignment to 'ret'. This patch is to
do cleanup.

Signed-off-by: Mao Wenan <maowenan@huawei.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c