liquidio: remove/replace invalid code
authorRick Farrington <ricardo.farrington@cavium.com>
Mon, 13 Mar 2017 19:07:32 +0000 (12:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Mar 2017 03:15:20 +0000 (20:15 -0700)
commitb229487b36a418c755eab6485aae74582d52d4a4
treef078689c3fcf28d4c3632d506dd2351b5fa8ea4b
parent5080f39e8c72e01cf37e8359023e7018e2a4901e
liquidio: remove/replace invalid code

Remove invalid call to dma_sync_single_for_cpu() because previous DMA
allocation was coherent--not streaming.  Remove code that references fields
in struct list_head; replace it with calls to list_empty() and
list_first_entry().  Also, add comment to clarify complicated if statement.

Signed-off-by: Rick Farrington <ricardo.farrington@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: Derek Chickles <derek.chickles@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/response_manager.c