IB/qib: Use dma_set_mask_and_coherent to simplify code
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 21 Nov 2020 09:51:27 +0000 (10:51 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 23 Nov 2020 20:37:20 +0000 (16:37 -0400)
commitdf0e4de29c75fab2d59b67b7542ea1e10d32c6e1
treef31e18a2ed32570e46a2cada39aab80fa7c9e3d9
parent82101630222fc6caa21502df0d02e0153aaf25d2
IB/qib: Use dma_set_mask_and_coherent to simplify code

'pci_set_dma_mask()' + 'pci_set_consistent_dma_mask()' can be replaced by
an equivalent 'dma_set_mask_and_coherent()' which is much less verbose.

Link: https://lore.kernel.org/r/20201121095127.1335228-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/qib/qib_pcie.c