crypto: ccree - Remove a useless dma_supported() call

There is no point in calling dma_supported() before calling
dma_set_coherent_mask(). This function already calls dma_supported() and
returns an error (-EIO) if it fails.

So remove the superfluous dma_supported() call.

Moreover, setting a larger DMA mask will never fail when setting a smaller
one will succeed, so the whole "while" loop can be removed as well. (see

While at it, fix the name of the function reported in a dev_err().


Suggested-by: Christoph Hellwig <>
Signed-off-by: Christophe JAILLET <>
Acked-by: Gilad Ben-Yossef <>
Signed-off-by: Herbert Xu <>
1 file changed