linux-stable/drivers/scsi/elx/efct
Christophe JAILLET 1aa7d9799e scsi: efct: Remove useless DMA-32 fallback configuration
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>
2022-01-10 10:37:02 -05:00
..
efct_driver.c scsi: efct: Remove useless DMA-32 fallback configuration 2022-01-10 10:37:02 -05:00
efct_driver.h isystem: trim/fixup stdarg.h and other headers 2021-08-19 09:02:55 +09:00
efct_hw.c scsi: efct: Don't pass GFP_DMA to dma_alloc_coherent() 2021-12-16 22:52:29 -05:00
efct_hw.h scsi: elx: efct: Fix link error for _bad_cmpxchg 2021-06-18 23:01:04 -04:00
efct_hw_queues.c scsi: elx: efct: Hardware queue creation and deletion 2021-06-15 23:39:31 -04:00
efct_io.c scsi: efct: Don't pass GFP_DMA to dma_alloc_coherent() 2021-12-16 22:52:29 -05:00
efct_io.h scsi: elx: efct: Hardware queues processing 2021-06-15 23:39:31 -04:00
efct_lio.c Merge branch '5.15/scsi-fixes' into 5.16/scsi-staging 2021-10-12 11:58:12 -04:00
efct_lio.h scsi: elx: efct: LIO backend interface routines 2021-06-15 23:39:32 -04:00
efct_scsi.c Merge branch '5.15/scsi-fixes' into 5.16/scsi-staging 2021-10-12 11:58:12 -04:00
efct_scsi.h scsi: elx: efct: SCSI I/O handling routines 2021-06-15 23:39:32 -04:00
efct_unsol.c scsi: elx: efct: Remove redundant initialization of variable lun 2021-06-18 23:01:03 -04:00
efct_unsol.h scsi: elx: efct: Unsolicited FC frame processing routines 2021-06-15 23:39:32 -04:00
efct_xport.c scsi: elx: efct: Fix pointer error checking in debugfs init 2021-06-18 23:01:04 -04:00
efct_xport.h