Commit bfd00210 authored by Ovidiu Panait's avatar Ovidiu Panait Committed by Herbert Xu

crypto: sl3516 - Use helper to set reqsize

The value of reqsize must only be changed through the helper.
Signed-off-by: default avatarOvidiu Panait <ovidiu.panait@windriver.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 7b0795d9
...@@ -332,8 +332,8 @@ int sl3516_ce_cipher_init(struct crypto_tfm *tfm) ...@@ -332,8 +332,8 @@ int sl3516_ce_cipher_init(struct crypto_tfm *tfm)
return PTR_ERR(op->fallback_tfm); return PTR_ERR(op->fallback_tfm);
} }
sktfm->reqsize = sizeof(struct sl3516_ce_cipher_req_ctx) + crypto_skcipher_set_reqsize(sktfm, sizeof(struct sl3516_ce_cipher_req_ctx) +
crypto_skcipher_reqsize(op->fallback_tfm); crypto_skcipher_reqsize(op->fallback_tfm));
dev_info(op->ce->dev, "Fallback for %s is %s\n", dev_info(op->ce->dev, "Fallback for %s is %s\n",
crypto_tfm_alg_driver_name(&sktfm->base), crypto_tfm_alg_driver_name(&sktfm->base),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment