aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/img-hash.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-06-18 11:16:25 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2020-06-26 14:46:43 +1000
commit84d840e1dd90e5fc07dedbd16df0dae7b3b3ef1a (patch)
tree42ebc5aafe7b3838d321e15ca72300862df52bf9 /drivers/crypto/img-hash.c
parentcrypto: ccp - remove redundant assignment to variable ret (diff)
downloadlinux-dev-84d840e1dd90e5fc07dedbd16df0dae7b3b3ef1a.tar.xz
linux-dev-84d840e1dd90e5fc07dedbd16df0dae7b3b3ef1a.zip
crypto: img-hash - remove redundant initialization of variable err
The variable err is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/img-hash.c')
-rw-r--r--drivers/crypto/img-hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/img-hash.c b/drivers/crypto/img-hash.c
index 0e25fc3087f3..87226b7c2795 100644
--- a/drivers/crypto/img-hash.c
+++ b/drivers/crypto/img-hash.c
@@ -330,7 +330,7 @@ static int img_hash_write_via_dma(struct img_hash_dev *hdev)
static int img_hash_dma_init(struct img_hash_dev *hdev)
{
struct dma_slave_config dma_conf;
- int err = -EINVAL;
+ int err;
hdev->dma_lch = dma_request_chan(hdev->dev, "tx");
if (IS_ERR(hdev->dma_lch)) {