dma: mv_xor: Fix incorrect error path
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 2 Sep 2013 08:24:20 +0000 (13:54 +0530)
committerDan Williams <dan.j.williams@intel.com>
Mon, 9 Sep 2013 17:26:04 +0000 (10:26 -0700)
commita577659f42f745b71cbc56c80fb1e801ec7e6348
tree9d32260e8644af9fdb0c77b7542510e09b7e2466
parente6a5fa63407bfc5b7b13e850a0a67e4db8c00ce7
dma: mv_xor: Fix incorrect error path

Return directly if memory allocation fails. There is no need
of dma_free_coherent().

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/mv_xor.c