OSDN Git Service

crypto: chtls - remove the redundant check in chtls_recvmsg()
authorYunfeng Ye <yeyunfeng@huawei.com>
Fri, 11 Oct 2019 12:44:53 +0000 (20:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 23 Oct 2019 08:46:57 +0000 (19:46 +1100)
commitfcf801cc551a05a439f819d91b5f853a49c8d243
tree68668bad304be0bdfc07dc27df6a8ccd97c6671c
parentb981744ef04f7e8cb6931edab50021fff3c8077e
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>
drivers/crypto/chelsio/chtls/chtls_io.c