Message ID | 1453021437-12531-1-git-send-email-noltari@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Herbert Xu |
Headers | show |
Le 17/01/2016 01:03, Álvaro Fernández Rojas a écrit : > 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; > > Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
On Sun, Jan 17, 2016 at 10:03:54AM +0100, Álvaro Fernández Rojas wrote: > 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; > > Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> All applied.
diff --git a/drivers/char/hw_random/bcm63xx-rng.c b/drivers/char/hw_random/bcm63xx-rng.c index 4b31f13..c303f30 100644 --- a/drivers/char/hw_random/bcm63xx-rng.c +++ b/drivers/char/hw_random/bcm63xx-rng.c @@ -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) {
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; Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> --- drivers/char/hw_random/bcm63xx-rng.c | 2 -- 1 file changed, 2 deletions(-)