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

Kulikov Vasiliy segooon at gmail.com
Tue Jun 29 06:15:24 EDT 2010


Remove unnesessary casts from void*.

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

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;
-- 
1.7.0.4




More information about the linux-mtd mailing list