mtd: r852: remove casts from void

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Aug 4 06:59:03 EDT 2010


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=029919c1ed79e409cbcdbfaf621b2077e72ccea6
Commit:     029919c1ed79e409cbcdbfaf621b2077e72ccea6
Parent:     7b8516b780ec639f26a4c6cdb51e342d8feecd44
Author:     Kulikov Vasiliy <segooon at gmail.com>
AuthorDate: Tue Jun 29 14:15:20 2010 +0400
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Aug 2 09:06:03 2010 +0100

    mtd: r852: remove casts from void
    
    Remove unnesessary casts from void*.
    
    Signed-off-by: Kulikov Vasiliy <segooon at gmail.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/r852.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/r852.c b/drivers/mtd/nand/r852.c
index 9c9af62..5169ca6 100644
--- a/drivers/mtd/nand/r852.c
+++ b/drivers/mtd/nand/r852.c
@@ -380,7 +380,7 @@ void r852_cmdctl(struct mtd_info *mtd, int dat, unsigned int ctrl)
  */
 int r852_wait(struct mtd_info *mtd, struct nand_chip *chip)
 {
-	struct r852_device *dev = (struct r852_device *)chip->priv;
+	struct r852_device *dev = chip->priv;
 
 	unsigned long timeout;
 	int status;



More information about the linux-mtd-cvs mailing list