Messages in this thread Patch in this message | | | From | Shubhrajyoti D <> | Subject | [PATCH] mtd: nand: omap: Trivial warn fix | Date | Wed, 8 Aug 2012 19:12:14 +0530 |
| |
The return value is not propagated in some of the error paths. Fix the same by passing the value to err.
CC drivers/mtd/nand/omap2.o drivers/mtd/nand/omap2.c: In function 'omap_nand_probe': drivers/mtd/nand/omap2.c:1154: warning: 'err' may be used uninitialized in this function LD drivers/mtd/nand/built-in.o
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com> --- drivers/mtd/nand/omap2.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index e9309b3..29a32e5 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c @@ -1258,6 +1258,7 @@ static int __devinit omap_nand_probe(struct platform_device *pdev) if (rc) { dev_err(&pdev->dev, "DMA engine slave config failed: %d\n", rc); + err = rc; goto out_release_mem_region; } info->nand.read_buf = omap_read_buf_dma_pref; -- 1.7.5.4
| |