mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-13 22:14:20 +08:00
383ce25dd2
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 [1]) While at it, fix the name of the function reported in a dev_err(). [1]: https://lore.kernel.org/all/YteQ6Vx2C03UtCkG@infradead.org/ Suggested-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Acked-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> |
||
---|---|---|
.. | ||
cc_aead.c | ||
cc_aead.h | ||
cc_buffer_mgr.c | ||
cc_buffer_mgr.h | ||
cc_cipher.c | ||
cc_cipher.h | ||
cc_crypto_ctx.h | ||
cc_debugfs.c | ||
cc_debugfs.h | ||
cc_driver.c | ||
cc_driver.h | ||
cc_fips.c | ||
cc_fips.h | ||
cc_hash.c | ||
cc_hash.h | ||
cc_host_regs.h | ||
cc_hw_queue_defs.h | ||
cc_kernel_regs.h | ||
cc_lli_defs.h | ||
cc_pm.c | ||
cc_pm.h | ||
cc_request_mgr.c | ||
cc_request_mgr.h | ||
cc_sram_mgr.c | ||
cc_sram_mgr.h | ||
Makefile |