diff options
Diffstat (limited to 'drivers/crypto/ux500')
-rw-r--r-- | drivers/crypto/ux500/hash/hash_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto/ux500/hash/hash_core.c index 8d16d3aa7650..d99b671769d9 100644 --- a/drivers/crypto/ux500/hash/hash_core.c +++ b/drivers/crypto/ux500/hash/hash_core.c | |||
@@ -939,6 +939,7 @@ static int hash_dma_final(struct ahash_request *req) | |||
939 | if (!ctx->device->dma.nents) { | 939 | if (!ctx->device->dma.nents) { |
940 | dev_err(device_data->dev, "[%s] " | 940 | dev_err(device_data->dev, "[%s] " |
941 | "ctx->device->dma.nents = 0", __func__); | 941 | "ctx->device->dma.nents = 0", __func__); |
942 | ret = ctx->device->dma.nents; | ||
942 | goto out; | 943 | goto out; |
943 | } | 944 | } |
944 | 945 | ||
@@ -946,6 +947,7 @@ static int hash_dma_final(struct ahash_request *req) | |||
946 | if (bytes_written != req->nbytes) { | 947 | if (bytes_written != req->nbytes) { |
947 | dev_err(device_data->dev, "[%s] " | 948 | dev_err(device_data->dev, "[%s] " |
948 | "hash_dma_write() failed!", __func__); | 949 | "hash_dma_write() failed!", __func__); |
950 | ret = bytes_written; | ||
949 | goto out; | 951 | goto out; |
950 | } | 952 | } |
951 | 953 | ||