Skip to content
Snippets Groups Projects
Commit ab300465 authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: api - Fix aligned ctx helper


The aligned ctx helper was using a bogus alignment value thas was
one off the correct value.  Fortunately the current users do not
require anything beyond the natural alignment of the platform so
this hasn't caused a problem.

This patch fixes that and also removes the unnecessary minimum
check since if the alignment is less than the natural alignment
then the subsequent ALIGN operation should be a noop.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 0b767b4d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment