Patchwork [08/25] sm_common: remove casts from void*

login
register
mail settings
Submitter Kulikov Vasiliy
Date June 29, 2010, 10:15 a.m.
Message ID <1277806525-30976-1-git-send-email-segooon@gmail.com>
Download mbox | patch
Permalink /patch/57261/
State Accepted
Commit ece0ac98a13a555e6d46a02225fa15934abe7a3d
Headers show

Comments

Kulikov Vasiliy - June 29, 2010, 10:15 a.m.
Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
---
 drivers/mtd/nand/sm_common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/mtd/nand/sm_common.c b/drivers/mtd/nand/sm_common.c
index ac80fb3..4a8f367 100644
--- a/drivers/mtd/nand/sm_common.c
+++ b/drivers/mtd/nand/sm_common.c
@@ -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;