From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp14.mail.ru ([94.100.176.91]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UCtUK-0005it-9C for barebox@lists.infradead.org; Tue, 05 Mar 2013 15:09:09 +0000 From: Alexander Shiyan Date: Tue, 5 Mar 2013 19:09:01 +0400 Message-Id: <1362496142-23729-1-git-send-email-shc_work@mail.ru> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/2] mtd: nand: Fix compiler warning To: barebox@lists.infradead.org This patch fixes following warning: drivers/mtd/nand/nand_write.c: In function 'nand_do_write_ops': drivers/mtd/nand/nand_write.c:272: warning: 'ret' may be used uninitialized in this function Signed-off-by: Alexander Shiyan --- drivers/mtd/nand/nand_write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/nand_write.c b/drivers/mtd/nand/nand_write.c index eea5113..0e2f98f 100644 --- a/drivers/mtd/nand/nand_write.c +++ b/drivers/mtd/nand/nand_write.c @@ -269,7 +269,7 @@ int nand_do_write_ops(struct mtd_info *mtd, loff_t to, uint32_t writelen = ops->len; uint8_t *oob = ops->oobbuf; uint8_t *buf = ops->datbuf; - int ret, subpage; + int ret = 0, subpage; ops->retlen = 0; if (!writelen) -- 1.7.12.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox