ravb: do not invalidate cache for RX buffer twice
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 14 Jul 2015 21:56:52 +0000 (00:56 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jul 2015 07:10:47 +0000 (00:10 -0700)
commite2370f07cf703c0920c99bc24de3d152262738f0
tree774464cccb5fc59dc5785e83af1f3f3f478d1f7f
parent15afb10df4a3f1bd781373ffd968e70cc4b21a42
ravb: do not invalidate cache for RX buffer twice

First, dma_sync_single_for_cpu() shouldn't have been called in the first place
(it's a streaming DMA API), dma_unmap_single() should have been called instead.
Second, dma_unmap_single() call after handing the buffer to napi_gro_receive()
makes little sense.  Moreover desc->dptr might not be valid at this point.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb_main.c