summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorMao Wenan <maowenan@huawei.com>2019-09-12 12:02:17 +0800
committerDavid S. Miller <davem@davemloft.net>2019-09-13 22:06:20 +0200
commit8e2ef6abd4653b1cfeefe262017ecdd5eaf40fef (patch)
tree32c066b1f02081a3f3194c51342ba2a278bd3349 /.gitignore
parent8f6617badcc96a582678ea36ea96490c5ff26eb4 (diff)
sctp: change return type of sctp_get_port_local
Currently sctp_get_port_local() returns a long which is either 0,1 or a pointer casted to long. It's neither of the callers use the return value since commit 62208f12451f ("net: sctp: simplify sctp_get_port"). Now two callers are sctp_get_port and sctp_do_bind, they actually assumend a casted to an int was the same as a pointer casted to a long, and they don't save the return value just check whether it is zero or non-zero, so it would better change return type from long to int for sctp_get_port_local. Signed-off-by: Mao Wenan <maowenan@huawei.com> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions