diff mbox series

[2/2] Fixed return to CRYPTO_OK

Message ID 20240816072650.698340-2-pavitrakumarm@vayavyalabs.com
State New
Headers show
Series [1/2] Fix counter width checks | expand

Commit Message

Pavitrakumar Managutte Aug. 16, 2024, 7:26 a.m. UTC
Removed CRYPTO_USED_JB and returning CRYPTO_OK instead.

Signed-off-by: Bhoomika K <bhoomikak@vayavyalabs.com>
Signed-off-by: Pavitrakumar M <pavitrakumarm@vayavyalabs.com>
Acked-by: Ruud Derwig <Ruud.Derwig@synopsys.com>
---
 drivers/crypto/dwc-spacc/spacc_core.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/crypto/dwc-spacc/spacc_core.c b/drivers/crypto/dwc-spacc/spacc_core.c
index 9bc49de06bb2..03495b4ae553 100644
--- a/drivers/crypto/dwc-spacc/spacc_core.c
+++ b/drivers/crypto/dwc-spacc/spacc_core.c
@@ -1103,7 +1103,7 @@  int spacc_packet_enqueue_ddt_ex(struct spacc_device *spacc, int use_jb,
 {
 	int i;
 	struct spacc_job *job;
-	int ret = CRYPTO_OK, proc_len;
+	int proc_len;
 
 	if (job_idx < 0 || job_idx > SPACC_MAX_JOBS)
 		return -ENXIO;
@@ -1222,7 +1222,7 @@  int spacc_packet_enqueue_ddt_ex(struct spacc_device *spacc, int use_jb,
 		job->ctrl &= ~SPACC_CTRL_MASK(SPACC_CTRL_KEY_EXP);
 	}
 
-	return ret;
+	return CRYPTO_OK;
 
 fifo_full:
 	/* try to add a job to the job buffers*/
@@ -1248,7 +1248,7 @@  int spacc_packet_enqueue_ddt_ex(struct spacc_device *spacc, int use_jb,
 
 	spacc->jb_head = i;
 
-	return CRYPTO_USED_JB;
+	return CRYPTO_OK;
 }
 
 int spacc_packet_enqueue_ddt(struct spacc_device *spacc, int job_idx,