linux_old1/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 drivers/net: remove all references to obsolete Ethernet-HOWTO 2015-06-23 06:50:35 -07:00
Makefile
ks8695net.c net: ethernet: micrel: drop owner assignment from platform_drivers 2014-10-20 16:21:09 +02:00
ks8695net.h
ks8842.c ethernet: micrel: fix some error codes 2016-03-18 19:39:54 -04:00
ks8851.c Merge remote-tracking branches 'spi/topic/omap-100k', 'spi/topic/omap-uwire', 'spi/topic/owner', 'spi/topic/pxa' and 'spi/topic/pxa2xx' into spi-next 2015-11-04 11:02:12 +00:00
ks8851.h drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
ks8851_mll.c net: ethernet: micrel: drop owner assignment from platform_drivers 2014-10-20 16:21:09 +02:00
ksz884x.c ethernet: micrel: use time_is_before_eq_jiffies 2015-06-07 19:22:49 -07:00