mtd: nand: sh_flctl: handle dma_submit() errors
authorBrian Norris <computersforpeace@gmail.com>
Thu, 5 May 2016 19:42:44 +0000 (12:42 -0700)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 23 Sep 2016 07:35:16 +0000 (09:35 +0200)
commit3fe4f900bf3061b3994c56eea497d8a839241277
treeede617e78aa0a7d612c37356cd41548e6ddeab60
parentd9ca77f0eafabb5495542386777ab2833442089b
mtd: nand: sh_flctl: handle dma_submit() errors

Some build tools noticed that 'cookie' is being set but not used. Might
as well catch the errors here and handle them the same way we handle
other DMA prep steps.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/sh_flctl.c