nand: mxs: convey return code from failed function rather than '0' in mxs_nand_ecc_wr...
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 22 Oct 2015 09:27:22 +0000 (11:27 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 22 Oct 2015 09:27:22 +0000 (11:27 +0200)
drivers/mtd/nand/mxs_nand.c

index 480b4a5..d4575fb 100644 (file)
@@ -926,7 +926,7 @@ static int mxs_nand_ecc_write_page(struct mtd_info *mtd,
 
 rtn:
        mxs_nand_return_dma_descs(nand_info);
-       return 0;
+       return ret;
 }
 
 /*