Commit 57ed0b3fa02282a446a49ad2c59108c6fe65855f

Authored by BJ DevOps Team
Exists in emb_lf_v2022.04

Merge remote-tracking branch 'origin/imx_v2022.04' into lf_v2022.04

* origin/imx_v2022.04:
  crypto: fsl_hash: Remove unnecessary alignment check in caam_hash()

Showing 1 changed file Side-by-side Diff

drivers/crypto/fsl/fsl_hash.c
... ... @@ -186,13 +186,6 @@
186 186 uint32_t *desc;
187 187 unsigned int size;
188 188  
189   - if (!IS_ALIGNED((uintptr_t)pbuf, ARCH_DMA_MINALIGN) ||
190   - !IS_ALIGNED((uintptr_t)pout, ARCH_DMA_MINALIGN)) {
191   - puts("Error: Address arguments are not aligned\n");
192   - return -EINVAL;
193   - }
194   -
195   - debug("\ncaam hash\n");
196 189 desc = malloc_cache_aligned(sizeof(int) * MAX_CAAM_DESCSIZE);
197 190 if (!desc) {
198 191 debug("Not enough memory for descriptor allocation\n");