]> git.baikalelectronics.ru Git - kernel.git/commit
enic: Use dma_set_mask_and_coherent()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 1 Jan 2022 14:02:45 +0000 (15:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Jan 2022 12:20:12 +0000 (12:20 +0000)
commit5e075c2dbfb492153151e2c4df9602dded5f5599
tree31ea6423de9c472695da8df0e9841c9807898478
parentea8408774da1db61a9dbaec3ac80ac59cb8a9b95
enic: Use dma_set_mask_and_coherent()

Use dma_set_mask_and_coherent() instead of unrolling it with some
dma_set_mask()+dma_set_coherent_mask().

This simplifies code and removes some dead code (dma_set_coherent_mask()
can not fail after a successful dma_set_mask())

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic_main.c