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

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

Comments

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

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
---
 drivers/mtd/nand/r852.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Artem Bityutskiy - July 13, 2010, 9:57 a.m.
On Tue, 2010-06-29 at 14:14 +0400, Kulikov Vasiliy wrote:
> Remove unnesessary casts from void*.
> 
> Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>

Pushed whole series to l2-mtd-2.6.git / master.

Patch

diff --git a/drivers/mtd/nand/r852.c b/drivers/mtd/nand/r852.c
index 78a4232..c0a9835 100644
--- a/drivers/mtd/nand/r852.c
+++ b/drivers/mtd/nand/r852.c
@@ -64,8 +64,8 @@  static inline void r852_write_reg_dword(struct r852_device *dev,
 /* returns pointer to our private structure */
 static inline struct r852_device *r852_get_dev(struct mtd_info *mtd)
 {
-	struct nand_chip *chip = (struct nand_chip *)mtd->priv;
-	return (struct r852_device *)chip->priv;
+	struct nand_chip *chip = mtd->priv;
+	return chip->priv;
 }