Skip to content
Snippets Groups Projects
Commit ed51257e authored by Stefan Roese's avatar Stefan Roese Committed by Tom Rix
Browse files

ppc4xx: Fix compilation warning in 4xx miiphy.c


This patch fixes the following compilation warning:

miiphy.c: In function 'emac4xx_miiphy_read':
miiphy.c:353: warning: dereferencing type-punned pointer will break
strict-aliasing rules

Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent 9c721657
No related branches found
No related tags found
No related merge requests found
......@@ -350,7 +350,7 @@ int emac4xx_miiphy_read (char *devname, unsigned char addr, unsigned char reg,
return -1;
sta_reg = in_be32((void *)EMAC_STACR + emac_reg);
*value = *(u16 *)(&sta_reg);
*value = sta_reg >> 16;
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment