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: Yunfeng Ye <yeyunfeng@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
b981744ef0
commit
fcf801cc55
1 changed files with 1 additions and 2 deletions
|
@ -1841,8 +1841,7 @@ skip_copy:
|
|||
tp->urg_data = 0;
|
||||
|
||||
if (avail + offset >= skb->len) {
|
||||
if (likely(skb))
|
||||
chtls_free_skb(sk, skb);
|
||||
chtls_free_skb(sk, skb);
|
||||
buffers_freed++;
|
||||
|
||||
if (copied >= target &&
|
||||
|
|
Loading…
Reference in a new issue