1
0
Fork 0

crypto: essiv - remove redundant null pointer check before kfree

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>
alistair/sunxi64-5.5-dsi
Chen Wandun 2019-11-16 14:51:00 +08:00 committed by Herbert Xu
parent 57d8154f15
commit e18036da5c
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}