diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-10-18 16:24:21 (GMT) |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-10-20 14:11:06 (GMT) |
commit | d9bba4c3ebbc65b9113624eb1690bed776fb6106 (patch) | |
tree | 3da1f44504ef1fabae330f30e377da40a921af42 /fs/buffer.c | |
parent | 0971d09a8566abd6640acdbe3fd304e67e257bd3 (diff) | |
download | linux-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 'fs/buffer.c')
0 files changed, 0 insertions, 0 deletions