r8169: remove not needed call to dma_sync_single_for_device
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 27 Jun 2019 21:19:09 +0000 (23:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jun 2019 19:29:39 +0000 (12:29 -0700)
commitf072218cca5b076dd99f3dfa3aaafedfd0023a51
tree116642c249c9fb87a4837c6e64c4efacca1888d0
parent3c18cbe33711d7f46aa3787c79ff809011f54b40
r8169: remove not needed call to dma_sync_single_for_device

DMA_API_HOWTO.txt includes an example explaining when
dma_sync_single_for_device() is not needed, and that example matches
our use case. The buffer isn't changed by the CPU and direction is
DMA_FROM_DEVICE, so we can remove the call to
dma_sync_single_for_device().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c