Patchwork [07/25] r852: remove casts from void*

login
register
mail settings
Submitter Kulikov Vasiliy
Date June 29, 2010, 10:15 a.m.
Message ID <1277806521-30942-1-git-send-email-segooon@gmail.com>
Download mbox | patch
Permalink /patch/57265/
State Accepted
Commit 029919c1ed79e409cbcdbfaf621b2077e72ccea6
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/r852.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/mtd/nand/r852.c b/drivers/mtd/nand/r852.c
index c0a9835..43f0366 100644
--- a/drivers/mtd/nand/r852.c
+++ b/drivers/mtd/nand/r852.c
@@ -380,7 +380,7 @@  void r852_cmdctl(struct mtd_info *mtd, int dat, unsigned int ctrl)
  */
 int r852_wait(struct mtd_info *mtd, struct nand_chip *chip)
 {
-	struct r852_device *dev = (struct r852_device *)chip->priv;
+	struct r852_device *dev = chip->priv;
 
 	unsigned long timeout;
 	int status;