ethernet: aquantia: fix dma_mapping_error test
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 1 Feb 2017 08:52:15 +0000 (11:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Feb 2017 17:45:27 +0000 (12:45 -0500)
commitff1176f6164f3d151ee64c05d3f7b6662a81b982
tree50565c4765a87c28daf243747c9429cc704b3876
parentcdb478e5e413864df73096ef4f0e5d518395a92b
ethernet: aquantia: fix dma_mapping_error test

dma_mapping_error() returns 1 if there is an error and 0 if not.

Fixes: 018423e90bee ("net: ethernet: aquantia: Add ring support code")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_ring.c