diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-01-08 14:48:59 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-10 01:52:18 +0100 |
commit | a72dc1992de85ca712836c845458fa72824e355e (patch) | |
tree | f78e0e66c8cd6ef7566a009e43ffcb3f560514d4 /drivers/net/ethernet/myricom | |
parent | net: allwinner: Fix print format (diff) | |
download | linux-a72dc1992de85ca712836c845458fa72824e355e.tar.xz linux-a72dc1992de85ca712836c845458fa72824e355e.zip |
qlcnic: Simplify DMA setting
As stated in [1], dma_set_mask() with a 64-bit mask will never fail if
dev->dma_mask is non-NULL.
So, if it fails, the 32 bits case will also fail for the same reason.
So qlcnic_set_dma_mask(), (in qlcnic_main.c) can be simplified a lot and
inlined directly in its only caller.
If dma_set_mask_and_coherent() succeeds, 'pci_using_dac' is known to be 1.
So it can be removed from all the calling chain.
qlcnic_setup_netdev() can finally be simplified as-well.
[1]: https://lkml.org/lkml/2021/6/7/398
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/4996ab0337d62ec6a54b2edf234cd5ced4b4d7ad.1641649611.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/myricom')
0 files changed, 0 insertions, 0 deletions