OSDN Git Service

arm64/crypto: remove redundant update of data
authorColin Ian King <colin.king@canonical.com>
Sun, 24 Aug 2014 20:38:35 +0000 (21:38 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 26 Aug 2014 10:42:22 +0000 (11:42 +0100)
commit031cb428383b2fcf36a4ce09aeedaa548d9ed1d1
treeddffeb591e1bcf14de716469a99181e58699b3b9
parent52addcf9d6669fa439387610bc65c92fa0980cef
arm64/crypto: remove redundant update of data

Originally found by cppcheck:

[arch/arm64/crypto/sha2-ce-glue.c:153]: (warning) Assignment of
  function parameter has no effect outside the function. Did you
  forget dereferencing it?

Updating data by blocks * SHA256_BLOCK_SIZE at the end of
sha2_finup is redundant code and can be removed.

Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/crypto/sha2-ce-glue.c