Commit 0959a82
net/qla3xxx: 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.
So, if dma_set_mask_and_coherent() succeeds, 'pci_using_dac' is known to be
1.
Simplify code and remove some dead code accordingly.
[1]: https://lkml.org/lkml/2021/6/7/398
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/3011689e8c77d49d7e44509d5a8241320ec408c5.1641754134.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 7ac2d77 commit 0959a82
1 file changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3750 | 3750 | | |
3751 | 3751 | | |
3752 | 3752 | | |
3753 | | - | |
| 3753 | + | |
3754 | 3754 | | |
3755 | 3755 | | |
3756 | 3756 | | |
| |||
3766 | 3766 | | |
3767 | 3767 | | |
3768 | 3768 | | |
3769 | | - | |
3770 | | - | |
3771 | | - | |
3772 | | - | |
3773 | | - | |
| 3769 | + | |
3774 | 3770 | | |
3775 | 3771 | | |
3776 | 3772 | | |
| |||
3797 | 3793 | | |
3798 | 3794 | | |
3799 | 3795 | | |
3800 | | - | |
3801 | | - | |
| 3796 | + | |
3802 | 3797 | | |
3803 | 3798 | | |
3804 | 3799 | | |
| |||
0 commit comments