[U-Boot] [PATCH 6/8] PPC: Fix eepro100_eeprom.c by renaming "debug" to "eedebug"

Wolfgang Denk wd at denx.de
Mon Oct 3 16:34:34 CEST 2011


Dear Marek Vasut,

In message <1317603450-7527-7-git-send-email-marek.vasut at gmail.com> you wrote:
> From: Marek Vasut <marex at pollux.denx.de>

Fix...

> Also, squash a warning about initialized static data.
> 
> Signed-off-by: Marek Vasut <marek.vasut at gmail.com>
> ---
>  examples/standalone/eepro100_eeprom.c |   10 +++++-----
>  1 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/examples/standalone/eepro100_eeprom.c b/examples/standalone/eepro100_eeprom.c
> index 3c7f380..889ab55 100644
> --- a/examples/standalone/eepro100_eeprom.c
> +++ b/examples/standalone/eepro100_eeprom.c
> @@ -59,7 +59,7 @@ static unsigned short eeprom[256];
>  static int eeprom_size = 64;
>  static int eeprom_addr_size = 6;
>  
> -static int debug = 0;
> +static int eedebug;

It appears that there is no code anywhere that would ever change the
value of debug resp. eedebug; so this should probably be cleaned up
differently ?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
C++ is the best example of second-system effect since OS/360.


More information about the U-Boot mailing list