diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-03-16 10:45:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-18 19:39:54 -0400 |
commit | 3af0d554c1ce11e9d0953381ff566271f9ab81a9 (patch) | |
tree | d263f7c327d7015572cefd06411d912bbd70e7ee /include/uapi | |
parent | 3004932c804255cc0ed97f2afa31c6d252fed89e (diff) |
ethernet: micrel: fix some error codes
There were two issues here:
1) dma_mapping_error() return true/false but we want to return -ENOMEM
2) If dmaengine_prep_slave_sg() failed then "err" wasn't set but
presumably that should be -ENOMEM as well.
I changed the success path to "return 0;" instead of "return ret;" for
clarity.
Fixes: 94fe8c683cea ('ks8842: Support DMA when accessed via timberdale')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions