OSDN Git Service

mptcp: move common nospace-pattern to a helper
authorFlorian Westphal <fw@strlen.de>
Sat, 16 May 2020 08:46:17 +0000 (10:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 May 2020 19:35:34 +0000 (12:35 -0700)
commita0e17064d43e445181bc004d949a4855ea8ccf9c
tree4fa70aee67fe0e90bd07cecc47dcc85c3d8b3baf
parenteb682677f59e809d8e06c218b565aeb9723a4ad3
mptcp: move common nospace-pattern to a helper

Paolo noticed that ssk_check_wmem() has same pattern, so add/use
common helper for both places.

Suggested-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c