mtd: sm_common: remove casts from void
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Wed Aug 4 06:59:03 EDT 2010
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=ece0ac98a13a555e6d46a02225fa15934abe7a3d
Commit: ece0ac98a13a555e6d46a02225fa15934abe7a3d
Parent: 029919c1ed79e409cbcdbfaf621b2077e72ccea6
Author: Kulikov Vasiliy <segooon at gmail.com>
AuthorDate: Tue Jun 29 14:15:24 2010 +0400
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Aug 2 09:06:10 2010 +0100
mtd: sm_common: remove casts from void
Remove unnesessary casts from void*.
Signed-off-by: Kulikov Vasiliy <segooon at gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.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;
More information about the linux-mtd-cvs
mailing list