projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57d8154
)
crypto: essiv - remove redundant null pointer check before kfree
author
Chen Wandun
<chenwandun@huawei.com>
Sat, 16 Nov 2019 06:51:00 +0000
(14:51 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 22 Nov 2019 10:48:38 +0000
(18:48 +0800)
kfree has taken null pointer check into account. so it is safe to
remove the unnecessary check.
Signed-off-by: Chen Wandun <chenwandun@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/essiv.c
patch
|
blob
|
history
diff --git
a/crypto/essiv.c
b/crypto/essiv.c
index
fc248de
..
808f2b3
100644
(file)
--- a/
crypto/essiv.c
+++ b/
crypto/essiv.c
@@
-188,8
+188,7
@@
static void essiv_aead_done(struct crypto_async_request *areq, int err)
struct aead_request *req = areq->data;
struct essiv_aead_request_ctx *rctx = aead_request_ctx(req);
- if (rctx->assoc)
- kfree(rctx->assoc);
+ kfree(rctx->assoc);
aead_request_complete(req, err);
}