Commit edc7e489 authored by Mat Martineau's avatar Mat Martineau Committed by David S. Miller

mptcp: Fix code formatting

checkpatch.pl had a few complaints in the last set of MPTCP patches:

ERROR: code indent should use tabs where possible
+^I         subflow, sk->sk_family, icsk->icsk_af_ops, target, mapped);$

CHECK: Comparison to NULL could be written "!new_ctx"
+	if (new_ctx == NULL) {

ERROR: "foo * bar" should be "foo *bar"
+static const struct proto_ops * tcp_proto_ops(struct sock *sk)
Signed-off-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e42f1ac6
......@@ -26,7 +26,7 @@
static void __mptcp_close(struct sock *sk, long timeout);
static const struct proto_ops * tcp_proto_ops(struct sock *sk)
static const struct proto_ops *tcp_proto_ops(struct sock *sk)
{
#if IS_ENABLED(CONFIG_IPV6)
if (sk->sk_family == AF_INET6)
......
......@@ -773,7 +773,7 @@ static void subflow_ulp_clone(const struct request_sock *req,
}
new_ctx = subflow_create_ctx(newsk, priority);
if (new_ctx == NULL) {
if (!new_ctx) {
subflow_ulp_fallback(newsk, old_ctx);
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment