net: pch_gbe: Use dma_set_mask_and_coherent to simplify code
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 21 Nov 2020 09:03:02 +0000 (10:03 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Nov 2020 01:01:48 +0000 (17:01 -0800)
commit8ff39301efd9d21cd62caad3504aa8d6e35d8304
tree56c51d7168347192ce1c03b3f11539f584133a17
parent1119ea801955d93169b652f4dd3d46c455272c88
net: pch_gbe: 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.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20201121090302.1332491-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c