Skip to contentSkip to conversation

sm_common: remove casts from void*

PATCH Applied Kulikov Vasiliy 1 participant 1 message Jun 29, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 8/25 sm_common: remove casts from void*

Remove unnesessary casts from void*.

---
 drivers/mtd/nand/sm_common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/sm_common.c +1 -1
index ac80fb3..4a8f367 100644
@@ -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;
Signature · 1 line
1.7.0.4