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=d5af6dcffabdab199ecca0141a3a00201e948275
Commit:     d5af6dcffabdab199ecca0141a3a00201e948275
Parent:     771a115a6df06c45cf783e24c3f1f08b3e9aac4c
Author:     Kulikov Vasiliy <segooon at gmail.com>
AuthorDate: Tue Jun 29 14:14:57 2010 +0400
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Aug 2 09:05:26 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 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/r852.c b/drivers/mtd/nand/r852.c
index bcfc851..9c9af62 100644
--- a/drivers/mtd/nand/r852.c
+++ b/drivers/mtd/nand/r852.c
@@ -64,8 +64,8 @@ static inline void r852_write_reg_dword(struct r852_device *dev,
 /* returns pointer to our private structure */
 static inline struct r852_device *r852_get_dev(struct mtd_info *mtd)
 {
-	struct nand_chip *chip = (struct nand_chip *)mtd->priv;
-	return (struct r852_device *)chip->priv;
+	struct nand_chip *chip = mtd->priv;
+	return chip->priv;
 }
 
 



More information about the linux-mtd-cvs mailing list