summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/nx
diff options
context:
space:
mode:
authorDan Streetman <ddstreet@ieee.org>2015-05-15 11:07:33 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-18 12:20:17 +0800
commit9358eac06b8fcf9fcaf566ec825fc05e2b1acd10 (patch)
treee1842775d89304d7329fcc94b8229f03b38c3bcd /drivers/crypto/nx
parent42cb0c7bdf9ddd33b33d195414f9171e7fa7472c (diff)
downloadop-kernel-dev-9358eac06b8fcf9fcaf566ec825fc05e2b1acd10.zip
op-kernel-dev-9358eac06b8fcf9fcaf566ec825fc05e2b1acd10.tar.gz
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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Dan Streetman <ddstreet@ieee.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/nx')
-rw-r--r--drivers/crypto/nx/nx-842-crypto.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/crypto/nx/nx-842-crypto.c b/drivers/crypto/nx/nx-842-crypto.c
index cb177c3..2ffa103 100644
--- a/drivers/crypto/nx/nx-842-crypto.c
+++ b/drivers/crypto/nx/nx-842-crypto.c
@@ -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;
OpenPOWER on IntegriCloud