Message ID | 20200618101625.11986-1-colin.king@canonical.com |
---|---|
State | Accepted |
Commit | 84d840e1dd90e5fc07dedbd16df0dae7b3b3ef1a |
Headers | show |
Series | crypto: img-hash: remove redundant initialization of variable err | expand |
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)) {