diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-08-10 11:46:50 +0400 |
---|---|---|
committer | Dan Williams <djbw@fb.com> | 2013-08-23 09:57:42 +0400 |
commit | 71ea148370f8b6c745a8a42f6fd983cf5ebade18 (patch) | |
tree | da4fbe3924d48613c02b478d10e63c30524a7364 /drivers/dma/dmaengine.c | |
parent | c4dcf0e2dd7e06db0c5c3f396b2e2b9ce1f6d19f (diff) | |
download | linux-71ea148370f8b6c745a8a42f6fd983cf5ebade18.tar.xz |
dmaengine: make dma_submit_error() return an error code
The problem here is that the dma_xfer() functions in
drivers/ata/pata_arasan_cf.c and drivers/mtd/nand/fsmc_nand.c expect
dma_submit_error() to return an error code so they return 1 when they
intended to return a negative.
So far as I can tell, none of the ->tx_submit() functions ever do
return error codes so this patch should have no effect in the current
code.
I also changed it from a define to an inline.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dan Williams <djbw@fb.com>
Diffstat (limited to 'drivers/dma/dmaengine.c')
0 files changed, 0 insertions, 0 deletions