mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-08 03:23:32 -04:00
board/evb64260/eth.c: Fix GCC 4.6 build warning
Fix: eth.c: In function 'gt6426x_handle_SMI': eth.c:130:15: warning: variable 'psr' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
54a087464d
commit
b524b1c75d
@ -127,9 +127,10 @@ static void gt6426x_handle_SMI(struct eth_dev_s *p, unsigned int icr)
|
||||
#endif
|
||||
|
||||
if(icr&0x10000000) {
|
||||
unsigned int psr;
|
||||
psr=GTREGREAD(ETHERNET0_PORT_STATUS_REGISTER + p->reg_base);
|
||||
#ifdef DEBUG
|
||||
unsigned int psr;
|
||||
|
||||
psr=GTREGREAD(ETHERNET0_PORT_STATUS_REGISTER + p->reg_base);
|
||||
printf("PHY state change:\n"
|
||||
" GT:%s:%s:%s:%s\n",
|
||||
psr & 1 ? "100" : " 10",
|
||||
|
Loading…
x
Reference in New Issue
Block a user