crypto: spacc - Fixed return to CRYPTO_OK
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> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
58bf99100a
commit
87a3fcf5fe
@ -1103,7 +1103,7 @@ int spacc_packet_enqueue_ddt_ex(struct spacc_device *spacc, int use_jb,
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
struct spacc_job *job;
|
struct spacc_job *job;
|
||||||
int ret = CRYPTO_OK, proc_len;
|
int proc_len;
|
||||||
|
|
||||||
if (job_idx < 0 || job_idx >= SPACC_MAX_JOBS)
|
if (job_idx < 0 || job_idx >= SPACC_MAX_JOBS)
|
||||||
return -ENXIO;
|
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);
|
job->ctrl &= ~SPACC_CTRL_MASK(SPACC_CTRL_KEY_EXP);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return CRYPTO_OK;
|
||||||
|
|
||||||
fifo_full:
|
fifo_full:
|
||||||
/* try to add a job to the job buffers*/
|
/* try to add a job to the job buffers*/
|
||||||
@ -1248,7 +1248,7 @@ fifo_full:
|
|||||||
|
|
||||||
spacc->jb_head = i;
|
spacc->jb_head = i;
|
||||||
|
|
||||||
return CRYPTO_USED_JB;
|
return CRYPTO_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int spacc_packet_enqueue_ddt(struct spacc_device *spacc, int job_idx,
|
int spacc_packet_enqueue_ddt(struct spacc_device *spacc, int job_idx,
|
||||||
|
@ -333,8 +333,6 @@ enum {
|
|||||||
#define SPACC_MAX_JOB_BUFFERS 192
|
#define SPACC_MAX_JOB_BUFFERS 192
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CRYPTO_USED_JB 256
|
|
||||||
|
|
||||||
/* max DDT particle size */
|
/* max DDT particle size */
|
||||||
#ifndef SPACC_MAX_PARTICLE_SIZE
|
#ifndef SPACC_MAX_PARTICLE_SIZE
|
||||||
#define SPACC_MAX_PARTICLE_SIZE 4096
|
#define SPACC_MAX_PARTICLE_SIZE 4096
|
||||||
|
Loading…
Reference in New Issue
Block a user