Skip to contentSkip to conversation

n2-drv: remove casts from void*

PATCH Applied Kulikov Vasiliy 3 participants 3 messages Jun 29, 2010 – Jul 5, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/25 n2-drv: remove casts from void*

Remove unnesessary casts from void*.

---
 drivers/char/hw_random/n2-drv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/char/hw_random/n2-drv.c +1 -1
index 0f9cbf1..101d5f2 100644
@@ -387,7 +387,7 @@ static int n2rng_init_control(struct n2rng *np)
 
 static int n2rng_data_read(struct hwrng *rng, u32 *data)
 {
-	struct n2rng *np = (struct n2rng *) rng->priv;
+	struct n2rng *np = rng->priv;
 	unsigned long ra = __pa(&np->test_data);
 	int len;
 
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 1 line · Kulikov Vasiliy

Remove unnesessary casts from void*.

I have no idea how I made it to this list of recipients, but the change looks sane to me :)

Daniel

Quoted 21 lines
---
 drivers/char/hw_random/n2-drv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/char/hw_random/n2-drv.c +1 -1
index 0f9cbf1..101d5f2 100644
@@ -387,7 +387,7 @@ static int n2rng_init_control(struct n2rng *np)
 
 static int n2rng_data_read(struct hwrng *rng, u32 *data)
 {
-	struct n2rng *np = (struct n2rng *) rng->priv;
+	struct n2rng *np = rng->priv;
 	unsigned long ra = __pa(&np->test_data);
 	int len;
 
Signature · 1 line
1.7.0.4