diff options
author | Alessio Centazzo <centazzo@gmail.com> | 2009-07-11 11:56:06 -0700 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2009-07-22 22:53:45 -0700 |
commit | 0544c63681d2ea3607faf374e9c56f101e365b42 (patch) | |
tree | cde444dd83ac90232f33dd2f4348814cf152f2b1 /cpu/arm926ejs | |
parent | 09133f8580f0106429ba3600f1855bd3577ae58b (diff) | |
download | u-boot-imx-0544c63681d2ea3607faf374e9c56f101e365b42.zip u-boot-imx-0544c63681d2ea3607faf374e9c56f101e365b42.tar.gz u-boot-imx-0544c63681d2ea3607faf374e9c56f101e365b42.tar.bz2 |
ppc4xx: Fixed compilation warning in 4xx_enet.c
This patch fixes a compilation warning for some Ethernet PHY-less
PPC4xx platforms (440SPE based ones) and a potential compilation
error for 440SP platforms (use of undefined 'ethgroup' variable).
In the original code and in case of 440SPE platforms, 'ethgroup'
is initialized to -1 and never modified. Later in the function,
within an #ifdef statement, an 'if statement' executes code only
if 'ethgroup' is set to 4, therefore it is harmless to avoid
executing the 'if statement' by removing the CONFIG_440SPE from
the affected #ifdefs. In case of 440SP platforms with on-board
Ethernet PHY, 'ethgroup' is undefined but used (there are not such
platforms in the repository yet). All other architectures are not
affected by this change.
Signed-off-by: Alessio Centazzo acpatin@yahoo.com
Acked-by: Stefan Roese <sr@denx.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'cpu/arm926ejs')
0 files changed, 0 insertions, 0 deletions