Skip to content

Commit 87a3fcf

Browse files
Pavitrakumar Mherbertx
authored andcommitted
crypto: spacc - Fixed return to CRYPTO_OK
Removed CRYPTO_USED_JB and returning CRYPTO_OK instead. Signed-off-by: Bhoomika K <[email protected]> Signed-off-by: Pavitrakumar M <[email protected]> Acked-by: Ruud Derwig <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 58bf991 commit 87a3fcf

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

drivers/crypto/dwc-spacc/spacc_core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ int spacc_packet_enqueue_ddt_ex(struct spacc_device *spacc, int use_jb,
11031103
{
11041104
int i;
11051105
struct spacc_job *job;
1106-
int ret = CRYPTO_OK, proc_len;
1106+
int proc_len;
11071107

11081108
if (job_idx < 0 || job_idx >= SPACC_MAX_JOBS)
11091109
return -ENXIO;
@@ -1222,7 +1222,7 @@ int spacc_packet_enqueue_ddt_ex(struct spacc_device *spacc, int use_jb,
12221222
job->ctrl &= ~SPACC_CTRL_MASK(SPACC_CTRL_KEY_EXP);
12231223
}
12241224

1225-
return ret;
1225+
return CRYPTO_OK;
12261226

12271227
fifo_full:
12281228
/* 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,
12481248

12491249
spacc->jb_head = i;
12501250

1251-
return CRYPTO_USED_JB;
1251+
return CRYPTO_OK;
12521252
}
12531253

12541254
int spacc_packet_enqueue_ddt(struct spacc_device *spacc, int job_idx,

drivers/crypto/dwc-spacc/spacc_core.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,6 @@ enum {
333333
#define SPACC_MAX_JOB_BUFFERS 192
334334
#endif
335335

336-
#define CRYPTO_USED_JB 256
337-
338336
/* max DDT particle size */
339337
#ifndef SPACC_MAX_PARTICLE_SIZE
340338
#define SPACC_MAX_PARTICLE_SIZE 4096

0 commit comments

Comments
 (0)