]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mptcp: avoid some duplicate code in socket option handling
authorPaolo Abeni <pabeni@redhat.com>
Fri, 1 Mar 2024 17:43:45 +0000 (18:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2024 10:50:28 +0000 (10:50 +0000)
commita74762675f700a5473ebe54a671a0788a5b23cc9
treeb73d04f611d565d3fa9b874528f3c22e62be3b05
parent037db6ea57da7a134a8183dead92d64ef92babee
mptcp: avoid some duplicate code in socket option handling

The mptcp_get_int_option() helper is needless open-coded in a
couple of places, replace the duplicate code with the helper
call.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/sockopt.c