Commit d0a5c9d0 authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: iaa - Switch to ACOMP_FBREQ_ON_STACK



Rather than copying the request by hand, use the ACOMP_FBREQ_ON_STACK
helper to do it.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 05fa2c6e
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -999,12 +999,9 @@ static inline int check_completion(struct device *dev,

static int deflate_generic_decompress(struct acomp_req *req)
{
	ACOMP_REQUEST_ON_STACK(fbreq, crypto_acomp_reqtfm(req));
	ACOMP_FBREQ_ON_STACK(fbreq, req);
	int ret;

	acomp_request_set_callback(fbreq, 0, NULL, NULL);
	acomp_request_set_params(fbreq, req->src, req->dst, req->slen,
				 req->dlen);
	ret = crypto_acomp_decompress(fbreq);
	req->dlen = fbreq->dlen;