Commit fcf801cc authored by Yunfeng Ye's avatar Yunfeng Ye Committed by Herbert Xu
Browse files

crypto: chtls - remove the redundant check in chtls_recvmsg()



A warning message reported by a static analysis tool:
  "
  Either the condition 'if(skb)' is redundant or there is possible null
  pointer dereference: skb.
  "

Remove the unused redundant check.

Signed-off-by: default avatarYunfeng Ye <yeyunfeng@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent b981744e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1841,7 +1841,6 @@ skip_copy:
			tp->urg_data = 0;

		if (avail + offset >= skb->len) {
			if (likely(skb))
			chtls_free_skb(sk, skb);
			buffers_freed++;