提交 9358eac0 编写于 作者: D Dan Streetman 提交者: Herbert Xu

crypto: nx - remove 842-nx null checks

Remove the null checks for tfm, src, slen, dst, dlen; tfm will never
be null and the other fields are always expected to be set correctly.
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NDan Streetman <ddstreet@ieee.org>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 42cb0c7b
......@@ -298,9 +298,6 @@ static int nx842_crypto_compress(struct crypto_tfm *tfm,
bool add_header;
u16 ignore = 0;
if (!tfm || !src || !slen || !dst || !dlen)
return -EINVAL;
p.in = (u8 *)src;
p.iremain = slen;
p.out = dst;
......@@ -483,9 +480,6 @@ static int nx842_crypto_decompress(struct crypto_tfm *tfm,
u16 ignore = 0;
bool usehw = true;
if (!tfm || !src || !slen || !dst || !dlen)
return -EINVAL;
p.in = (u8 *)src;
p.iremain = slen;
p.out = dst;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册