summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/netronome/nfp/nfp_main.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-07-26 04:51:27 +0300
committerDavid S. Miller <davem@davemloft.net>2018-07-26 07:17:17 +0300
commitb24dbfe9ce03d9f83306616f22fb0e04e8960abe (patch)
tree4d4f0d0c3fa0ce50cd9c6f21ab523051da770b83 /drivers/net/ethernet/netronome/nfp/nfp_main.c
parent756cd36626f773e9a72a39c1dd12da4deacfacdf (diff)
downloadlinux-b24dbfe9ce03d9f83306616f22fb0e04e8960abe.tar.xz
amd-xgbe: use dma_mapping_error to check map errors
The dma_mapping_error() returns true or false, but we want to return -ENOMEM if there was an error. Fixes: 174fd2597b0b ("amd-xgbe: Implement split header receive support") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfp_main.c')
0 files changed, 0 insertions, 0 deletions