Commit e18036da authored by Chen Wandun's avatar Chen Wandun Committed by Herbert Xu
Browse files

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: default avatarChen Wandun <chenwandun@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 57d8154f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -188,7 +188,6 @@ 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);
	aead_request_complete(req, err);
}