mptcp: use lockdep_assert_held_once() instead of open-coding it
authorPaolo Abeni <pabeni@redhat.com>
Fri, 24 Sep 2021 21:12:36 +0000 (14:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Sep 2021 10:36:51 +0000 (11:36 +0100)
commit765ff425528f309b166978c4b295eb47ebefd47a
treeda891ca83ac4f214a003b3b509a3863823508001
parent13ac17a32bf1fefbc0bd412545a907979fda26b6
mptcp: use lockdep_assert_held_once() instead of open-coding it

We have a few more places where the mptcp code duplicates
lockdep_assert_held_once(). Let's use the existing macro and
avoid a bunch of compiler's conditional.

Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c