projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32e4b65
)
crypto/fsl: unused value in caam_hash_update()
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sat, 27 Jun 2020 08:13:55 +0000
(10:13 +0200)
committer
Priyanka 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
patch
|
blob
|
history
diff --git
a/drivers/crypto/fsl/fsl_hash.c
b/drivers/crypto/fsl/fsl_hash.c
index
953deec
..
61f953e
100644
(file)
--- a/
drivers/crypto/fsl/fsl_hash.c
+++ b/
drivers/crypto/fsl/fsl_hash.c
@@
-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;