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)
commitc5180ad0c2784924b3526ec2bd3ee9e0aa05724b
tree31ea6423de9c472695da8df0e9841c9807898478
parente44ef1d4de577aca369199b16da382d6e5aafaa3
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