mtd: sm_common: remove casts from void
authorKulikov Vasiliy <segooon@gmail.com>
Tue, 29 Jun 2010 10:15:24 +0000 (14:15 +0400)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 2 Aug 2010 08:06:10 +0000 (09:06 +0100)
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>
drivers/mtd/nand/sm_common.c

index ac80fb362e632423753ff82bf1c060b0c7f12833..4a8f367c295c404780e59d61dbcf19802462c29f 100644 (file)
@@ -109,7 +109,7 @@ static struct nand_flash_dev nand_xd_flash_ids[] = {
 
 int sm_register_device(struct mtd_info *mtd, int smartmedia)
 {
-       struct nand_chip *chip = (struct nand_chip *)mtd->priv;
+       struct nand_chip *chip = mtd->priv;
        int ret;
 
        chip->options |= NAND_SKIP_BBTSCAN;