diff options
author | David S. Miller <davem@davemloft.net> | 2020-07-23 21:54:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-23 21:54:41 +0300 |
commit | 15be4ea3f07034a50eee2db6f3fefd2bec582170 (patch) | |
tree | b5b27ef6eeb2de26adbd523121c709b3547747be /net/l2tp/l2tp_ip6.c | |
parent | 49b0aa1b6585705de4a08971602cd2726d9027f0 (diff) | |
parent | 70c05bfa4a3d36c0d8e7cef86b0f6c8a9cbb8881 (diff) | |
download | linux-15be4ea3f07034a50eee2db6f3fefd2bec582170.tar.xz |
Merge branch 'l2tp-further-checkpatch-pl-cleanups'
Tom Parkin says:
====================
l2tp: further checkpatch.pl cleanups
l2tp hasn't been kept up to date with the static analysis checks offered
by checkpatch.pl.
This patchset builds on the series "l2tp: cleanup checkpatch.pl
warnings". It includes small refactoring changes which improve code
quality and resolve a subset of the checkpatch warnings for the l2tp
codebase.
====================
Reviewed-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp/l2tp_ip6.c')
-rw-r--r-- | net/l2tp/l2tp_ip6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/l2tp/l2tp_ip6.c b/net/l2tp/l2tp_ip6.c index ca7696147c7e..614febf8dd0d 100644 --- a/net/l2tp/l2tp_ip6.c +++ b/net/l2tp/l2tp_ip6.c @@ -486,7 +486,7 @@ static int l2tp_ip6_push_pending_frames(struct sock *sk) int err = 0; skb = skb_peek(&sk->sk_write_queue); - if (skb == NULL) + if (!skb) goto out; transhdr = (__be32 *)skb_transport_header(skb); |