]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
crypto/fsl: unused value in caam_hash_update()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 27 Jun 2020 08:13:55 +0000 (10:13 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 27 Jul 2020 08:46:28 +0000 (14:16 +0530)
The value 0 assigned to final is overwritten before ever being used.

Remove the assignment.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/crypto/fsl/fsl_hash.c

index 953deec9ff729a155f10ca39f38061319359f2c1..61f953e8a6da5d9898067429388f1da2d6456205 100644 (file)
@@ -86,7 +86,7 @@ static int caam_hash_update(void *hash_ctx, const void *buf,
                            unsigned int size, int is_last,
                            enum caam_hash_algos caam_algo)
 {
-       uint32_t final = 0;
+       uint32_t final;
        phys_addr_t addr = virt_to_phys((void *)buf);
        struct sha_ctx *ctx = hash_ctx;