mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-24 13:40:24 +00:00
As stated in [1], dma_set_mask() with a 64-bit mask never fails if dev->dma_mask is non-NULL. So, if it fails, the 32 bits case will also fail for the same reason. Simplify code and remove some dead code accordingly. While at it, return the error code returned by dma_set_mask_and_coherent() instead of -1. [1]: https://lkml.org/lkml/2021/6/7/398 Link: https://lore.kernel.org/r/958bcb2a6e86344c14f38369e8e7079615a2b0e3.1641754613.git.christophe.jaillet@wanadoo.fr Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> |
||
|---|---|---|
| .. | ||
| efct_driver.c | ||
| efct_driver.h | ||
| efct_hw_queues.c | ||
| efct_hw.c | ||
| efct_hw.h | ||
| efct_io.c | ||
| efct_io.h | ||
| efct_lio.c | ||
| efct_lio.h | ||
| efct_scsi.c | ||
| efct_scsi.h | ||
| efct_unsol.c | ||
| efct_unsol.h | ||
| efct_xport.c | ||
| efct_xport.h | ||