Commit 030f9ce
cxgb4vf: 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/b14986ea39cea2ca9a6cd0476a3fc167c853ee67.1641736772.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 7fc7fc5 commit 030f9ce
1 file changed
Lines changed: 5 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2899 | 2899 | | |
2900 | 2900 | | |
2901 | 2901 | | |
2902 | | - | |
2903 | 2902 | | |
2904 | 2903 | | |
2905 | 2904 | | |
| |||
2920 | 2919 | | |
2921 | 2920 | | |
2922 | 2921 | | |
2923 | | - | |
2924 | | - | |
| 2922 | + | |
2925 | 2923 | | |
2926 | 2924 | | |
2927 | | - | |
2928 | | - | |
2929 | | - | |
2930 | | - | |
2931 | | - | |
2932 | | - | |
2933 | | - | |
2934 | | - | |
2935 | | - | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
2936 | 2928 | | |
2937 | 2929 | | |
2938 | 2930 | | |
| |||
3078 | 3070 | | |
3079 | 3071 | | |
3080 | 3072 | | |
3081 | | - | |
3082 | | - | |
3083 | | - | |
| 3073 | + | |
3084 | 3074 | | |
3085 | 3075 | | |
3086 | 3076 | | |
| |||
0 commit comments