mtd: blackfin NFC: remove pointless return value in bf5xx_nand_dma_rw

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Jun 5 14:59:22 EDT 2009


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=530c3b60658687e2ad7bf98ef83631a8280ae8a6
Commit:     530c3b60658687e2ad7bf98ef83631a8280ae8a6
Parent:     f4fa697c26bcd9e942de26bad970f4de1da5a49b
Author:     Mike Frysinger <vapier at gentoo.org>
AuthorDate: Tue May 26 06:24:13 2009 -0400
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Jun 5 18:17:26 2009 +0100

    mtd: blackfin NFC: remove pointless return value in bf5xx_nand_dma_rw
    
    Signed-off-by: Mike Frysinger <vapier at gentoo.org>
    Signed-off-by: Bryan Wu <cooloney at kernel.org>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/bf5xx_nand.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/nand/bf5xx_nand.c b/drivers/mtd/nand/bf5xx_nand.c
index 4c2a67c..2ab42d2 100644
--- a/drivers/mtd/nand/bf5xx_nand.c
+++ b/drivers/mtd/nand/bf5xx_nand.c
@@ -458,7 +458,7 @@ static irqreturn_t bf5xx_nand_dma_irq(int irq, void *dev_id)
 	return IRQ_HANDLED;
 }
 
-static int bf5xx_nand_dma_rw(struct mtd_info *mtd,
+static void bf5xx_nand_dma_rw(struct mtd_info *mtd,
 				uint8_t *buf, int is_read)
 {
 	struct bf5xx_nand_info *info = mtd_to_nand_info(mtd);
@@ -512,8 +512,6 @@ static int bf5xx_nand_dma_rw(struct mtd_info *mtd,
 	else
 		bfin_write_NFC_PGCTL(0x2);
 	wait_for_completion(&info->dma_completion);
-
-	return 0;
 }
 
 static void bf5xx_nand_dma_read_buf(struct mtd_info *mtd,



More information about the linux-mtd-cvs mailing list