summaryrefslogtreecommitdiff
path: root/drivers/spmi
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-10-18 16:24:21 (GMT)
committerHerbert Xu <herbert@gondor.apana.org.au>2015-10-20 14:11:06 (GMT)
commitd9bba4c3ebbc65b9113624eb1690bed776fb6106 (patch)
tree3da1f44504ef1fabae330f30e377da40a921af42 /drivers/spmi
parent0971d09a8566abd6640acdbe3fd304e67e257bd3 (diff)
downloadlinux-d9bba4c3ebbc65b9113624eb1690bed776fb6106.tar.xz
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/spmi')
0 files changed, 0 insertions, 0 deletions