lkml.org 
[lkml]   [2008]   [Apr]   [4]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 04 Apr 2008 01:46:18 -0400
FromJeff Garzik <>
SubjectRe: [PATCH 2/7] net: marvell.c fix sparse shadowed variable warning
Harvey Harrison wrote:
> The other if blocks don't redeclare temp, remove the redeclaration in
> the final if() block.
> 
> drivers/net/phy/marvell.c:214:7: warning: symbol 'temp' shadows an earlier one
> drivers/net/phy/marvell.c:160:6: originally declared here
> 
> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
> ---
>  drivers/net/phy/marvell.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c
> index 3353991..32a8503 100644
> --- a/drivers/net/phy/marvell.c
> +++ b/drivers/net/phy/marvell.c
> @@ -211,8 +211,6 @@ static int m88e1111_config_init(struct phy_device *phydev)
>  	}
> 
>  	if (phydev->interface == PHY_INTERFACE_MODE_SGMII) {
> -		int temp;
> -

applied




\
 
 \ /
  Last update: 2008-04-04 07:51    [from the cache]
©2003-2008