Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: r852: remove casts from void

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

authored by

Kulikov Vasiliy and committed by
David Woodhouse
d5af6dcf 771a115a

+2 -2
+2 -2
drivers/mtd/nand/r852.c
··· 64 64 /* returns pointer to our private structure */ 65 65 static inline struct r852_device *r852_get_dev(struct mtd_info *mtd) 66 66 { 67 - struct nand_chip *chip = (struct nand_chip *)mtd->priv; 68 - return (struct r852_device *)chip->priv; 67 + struct nand_chip *chip = mtd->priv; 68 + return chip->priv; 69 69 } 70 70 71 71