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

Submitted by Kulikov Vasiliy on June 29, 2010, 10:15 a.m.

Details

Message ID 1277806525-30976-1-git-send-email-segooon@gmail.com
State Accepted
Commit ece0ac98a13a555e6d46a02225fa15934abe7a3d
Headers show

Commit Message

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 hide | download patch | download mbox

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;