linux/drivers/net/ethernet/micrel
Dan Carpenter 3af0d554c1 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: 94fe8c683c ('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>
2016-03-18 19:39:54 -04:00
..
Kconfig
ks8695net.c
ks8695net.h
ks8842.c ethernet: micrel: fix some error codes 2016-03-18 19:39:54 -04:00
ks8851_mll.c
ks8851.c
ks8851.h
ksz884x.c
Makefile