Skip to content
Snippets Groups Projects
Commit b524b1c7 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

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: default avatarWolfgang Denk <wd@denx.de>
parent 54a08746
No related merge requests found
...@@ -127,9 +127,10 @@ static void gt6426x_handle_SMI(struct eth_dev_s *p, unsigned int icr) ...@@ -127,9 +127,10 @@ static void gt6426x_handle_SMI(struct eth_dev_s *p, unsigned int icr)
#endif #endif
if(icr&0x10000000) { if(icr&0x10000000) {
#ifdef DEBUG
unsigned int psr; unsigned int psr;
psr=GTREGREAD(ETHERNET0_PORT_STATUS_REGISTER + p->reg_base); psr=GTREGREAD(ETHERNET0_PORT_STATUS_REGISTER + p->reg_base);
#ifdef DEBUG
printf("PHY state change:\n" printf("PHY state change:\n"
" GT:%s:%s:%s:%s\n", " GT:%s:%s:%s:%s\n",
psr & 1 ? "100" : " 10", psr & 1 ? "100" : " 10",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment