Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95ad7544 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

net/tls: remove redundant second null check on sgout



A duplicated null check on sgout is redundant as it is known to be
already true because of the identical earlier check. Remove it.
Detected by cppcheck:

net/tls/tls_sw.c:696: (warning) Identical inner 'if' condition is always
true.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 080aadda
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -693,7 +693,6 @@ static int decrypt_skb(struct sock *sk, struct sk_buff *skb,
	if (!sgout) {
		nsg = skb_cow_data(skb, 0, &unused) + 1;
		sgin = kmalloc_array(nsg, sizeof(*sgin), sk->sk_allocation);
		if (!sgout)
		sgout = sgin;
	}