summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/s5p-sss.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2018-03-01 21:50:12 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2018-03-09 22:45:46 +0800
commit0e477c59ba7e1f5d3c3cfea4d4c282c722b47357 (patch)
tree75f9409e2ab39be5fca8aaa0fbfbb6bbc41f7401 /drivers/crypto/s5p-sss.c
parent17f5b19952ec9ea5e266d139a9f9360fd5b7c8ee (diff)
downloadlinux-0e477c59ba7e1f5d3c3cfea4d4c282c722b47357.tar.bz2
crypto: s5p-sss - Remove useless check for non-null request
ahash_request 'req' argument passed by the caller s5p_hash_handle_queue() cannot be NULL here because it is obtained from non-NULL pointer via container_of(). This fixes smatch warning: drivers/crypto/s5p-sss.c:1213 s5p_hash_prepare_request() warn: variable dereferenced before check 'req' (see line 1208) Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/s5p-sss.c')
-rw-r--r--drivers/crypto/s5p-sss.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c
index 5d64c08b7f47..d7c8163e5068 100644
--- a/drivers/crypto/s5p-sss.c
+++ b/drivers/crypto/s5p-sss.c
@@ -1210,9 +1210,6 @@ static int s5p_hash_prepare_request(struct ahash_request *req, bool update)
int xmit_len, hash_later, nbytes;
int ret;
- if (!req)
- return 0;
-
if (update)
nbytes = req->nbytes;
else