summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/inside-secure
diff options
context:
space:
mode:
authorAntoine Tenart2019-05-27 16:50:54 +0200
committerHerbert Xu2019-06-06 08:38:55 +0200
commitdd4306a6f398f49b60bd061d426e5e115234b8cc (patch)
treeba2c286045cebc5b2309ab7c90e960a770d86653 /drivers/crypto/inside-secure
parentcrypto: inside-secure - remove empty line (diff)
downloadkernel-qcow2-linux-dd4306a6f398f49b60bd061d426e5e115234b8cc.tar.gz
kernel-qcow2-linux-dd4306a6f398f49b60bd061d426e5e115234b8cc.tar.xz
kernel-qcow2-linux-dd4306a6f398f49b60bd061d426e5e115234b8cc.zip
crypto: inside-secure - move comment
This cosmetic patch moves a comment before the condition it is related to. The patch does not change the driver behaviour in any way. Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/inside-secure')
-rw-r--r--drivers/crypto/inside-secure/safexcel_hash.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/crypto/inside-secure/safexcel_hash.c b/drivers/crypto/inside-secure/safexcel_hash.c
index ac9282c1a5ec..a7cee9ed3789 100644
--- a/drivers/crypto/inside-secure/safexcel_hash.c
+++ b/drivers/crypto/inside-secure/safexcel_hash.c
@@ -223,10 +223,11 @@ static int safexcel_ahash_send_req(struct crypto_async_request *async, int ring,
* fit into full blocks, cache it for the next send() call.
*/
extra = queued & (crypto_ahash_blocksize(ahash) - 1);
+
+ /* If this is not the last request and the queued data
+ * is a multiple of a block, cache the last one for now.
+ */
if (!extra)
- /* If this is not the last request and the queued data
- * is a multiple of a block, cache the last one for now.
- */
extra = crypto_ahash_blocksize(ahash);
if (extra) {