summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/omap-aes.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-10-18 18:24:21 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-10-20 16:11:06 +0200
commitd9bba4c3ebbc65b9113624eb1690bed776fb6106 (patch)
tree3da1f44504ef1fabae330f30e377da40a921af42 /drivers/crypto/omap-aes.c
parentcrypto: marvell/cesa - move mv_cesa_dma_add_frag() calls (diff)
downloadlinux-d9bba4c3ebbc65b9113624eb1690bed776fb6106.tar.xz
linux-d9bba4c3ebbc65b9113624eb1690bed776fb6106.zip
crypto: marvell/cesa - use presence of scatterlist to determine data load
Use the presence of the scatterlist to determine whether we should load any new user data to the engine. The following shall always be true at this point: iter.base.op_len == 0 === iter.src.sg In doing so, we can: 1. eliminate the test for iter.base.op_len inside the loop, which makes the loop operation more obvious and understandable. 2. move the operation generation for the cache-only case. This prepares the code for the next step in its transformation, and also uncovers a bug that will be fixed in the next patch. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/omap-aes.c')
0 files changed, 0 insertions, 0 deletions