Skip to content

Commit

Permalink
crypto: ccm - use local variables instead of indirect references
Browse files Browse the repository at this point in the history
The variable odata has been introduced into the function scope as
a variable and should be used directly.

Signed-off-by: Tianjia Zhang <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
uudiin authored and herbertx committed Oct 21, 2022
1 parent ee1537f commit ad98164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/ccm.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ static int crypto_ccm_auth(struct aead_request *req, struct scatterlist *plain,
cryptlen += ilen;
}

ahash_request_set_crypt(ahreq, plain, pctx->odata, cryptlen);
ahash_request_set_crypt(ahreq, plain, odata, cryptlen);
err = crypto_ahash_finup(ahreq);
out:
return err;
Expand Down

0 comments on commit ad98164

Please sign in to comment.