lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 27 May 2014 12:16:28 +0100
From:	Grant Likely <grant.likely@...aro.org>
To:	Christian Engelmayer <cengelma@....at>, netdev@...r.kernel.org
Cc:	s.hauer@...gutronix.de, f.fainelli@...il.com, robh+dt@...nel.org,
	devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
	Christian Engelmayer <cengelma@....at>
Subject: Re: [PATCH] of: mdio: fix compile warning in
 of_mdiobus_register_phy()

On Fri, 23 May 2014 23:33:55 +0200, Christian Engelmayer <cengelma@....at> wrote:
> Commit de906af1 (net: phy: make of_set_phy_supported work with genphy driver)
> removed the last user of variable 'max_speed' in function
> of_mdiobus_register_phy(), leading to compile warning "unused variable
> ‘max_speed’ [-Wunused-variable]". Thus remove it.
> 
> Signed-off-by: Christian Engelmayer <cengelma@....at>
> ---
> Compile tested. Applies against branch master in tree
> git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git

Acked-by: Grant Likely <grant.likely@...aro.org>

g.

> ---
>  drivers/of/of_mdio.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/of/of_mdio.c b/drivers/of/of_mdio.c
> index b857094..7c6e277 100644
> --- a/drivers/of/of_mdio.c
> +++ b/drivers/of/of_mdio.c
> @@ -46,7 +46,6 @@ static int of_mdiobus_register_phy(struct mii_bus *mdio, struct device_node *chi
>  	struct phy_device *phy;
>  	bool is_c45;
>  	int rc;
> -	u32 max_speed = 0;
>  	u32 phy_id;
>  
>  	is_c45 = of_device_is_compatible(child,
> -- 
> 1.9.1
> 

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists