Skip to contentSkip to conversation

hw_random: bcm63xx-rng: remove unused variables

PATCH In review Álvaro Fernández Rojas 3 participants 3 messages Jan 17, 2016 – Jan 25, 2016

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

PATCH 1/4 hw_random: bcm63xx-rng: remove unused variables

These variables where left as unused in commit 6229c16060fe ("hwrng: bcm63xx - make use of devm_hwrng_register")

Fixes the following warning:
drivers/char/hw_random/bcm63xx-rng.c: In function 'bcm63xx_rng_probe':
drivers/char/hw_random/bcm63xx-rng.c:85:16: warning: unused variable 'rng' [-Wunused-variable]

  struct hwrng *rng;
                ^

drivers/char/hw_random/bcm63xx-rng.c:82:14: warning: unused variable 'clk' [-Wunused-variable]
struct clk *clk;

---
 drivers/char/hw_random/bcm63xx-rng.c | 2 --
 1 file changed, 2 deletions(-)
drivers/char/hw_random/bcm63xx-rng.c +0 -2
index 4b31f13..c303f30 100644
@@ -79,10 +79,8 @@ static int bcm63xx_rng_data_read(struct hwrng *rng, u32 *data)
 static int bcm63xx_rng_probe(struct platform_device *pdev)
 {
 	struct resource *r;
-	struct clk *clk;
 	int ret;
 	struct bcm63xx_rng_priv *priv;
-	struct hwrng *rng;
 
 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	if (!r) {
Signature · 1 line
1.9.1
Reviewed-by on v1 1/4
#1 lore raw
Quoted 7 lines · Álvaro Fernández Rojas

These variables where left as unused in commit 6229c16060fe ("hwrng: bcm63xx - make use of devm_hwrng_register")

Fixes the following warning:
drivers/char/hw_random/bcm63xx-rng.c: In function 'bcm63xx_rng_probe':
drivers/char/hw_random/bcm63xx-rng.c:85:16: warning: unused variable 'rng' [-Wunused-variable]

Quoted 7 lines
  struct hwrng *rng;
                ^

drivers/char/hw_random/bcm63xx-rng.c:82:14: warning: unused variable 'clk' [-Wunused-variable]
struct clk *clk;

Signature · 1 line
Florian
maintainer
#2 lore raw
In reply to Álvaro Fernández Rojas
Quoted 7 lines · Álvaro Fernández Rojas

These variables where left as unused in commit 6229c16060fe ("hwrng: bcm63xx - make use of devm_hwrng_register")

Fixes the following warning:
drivers/char/hw_random/bcm63xx-rng.c: In function 'bcm63xx_rng_probe':
drivers/char/hw_random/bcm63xx-rng.c:85:16: warning: unused variable 'rng' [-Wunused-variable]

Quoted 7 lines
  struct hwrng *rng;
                ^

drivers/char/hw_random/bcm63xx-rng.c:82:14: warning: unused variable 'clk' [-Wunused-variable]
struct clk *clk;

All applied.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt