crypto: marvell/cesa - avoid adding final operation within loop
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 18 Oct 2015 16:24:32 +0000 (17:24 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Oct 2015 14:11:07 +0000 (22:11 +0800)
commite41bbebddec44f7c06585f42686b2a529513fc6a
tree9767ea139acedeadd70f7eb857c80f3970b6092c
parentbd274b10856b91f702fa767114aa7e6ac45b933d
crypto: marvell/cesa - avoid adding final operation within loop

Avoid adding the final operation within the loop, but instead add it
outside.  We combine this with the handling for the no-data case.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/hash.c