]> git.sur5r.net Git - u-boot/commitdiff
mpc83xx: mpc8360emds - fix gcc 4.6 compiler warning
authorKim Phillips <kim.phillips@freescale.com>
Tue, 15 Nov 2011 22:59:52 +0000 (22:59 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 16 Nov 2011 20:41:39 +0000 (21:41 +0100)
Configuring for MPC8360EMDS_66_HOST_33 - Board: MPC8360EMDS, Options: CLKIN_66MHZ,PCI,PCI_33M,PQ_MDS_PIB=1
mpc8360emds.c: In function 'board_eth_init':
mpc8360emds.c:178:12: warning: array subscript is above array bounds [-Warray-bounds]

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
board/freescale/mpc8360emds/mpc8360emds.c

index be76774fc58b659ae0e7911b60aaee29cf314b6c..bdd12933433467deb23ad83004cc7a4df0cd0bda 100644 (file)
@@ -172,10 +172,11 @@ int board_eth_init(bd_t *bd)
        if (board_handle_erratum2()) {
                int i;
 
-               for (i = 0; i < ARRAY_SIZE(uec_info); i++)
+               for (i = 0; i < ARRAY_SIZE(uec_info); i++) {
                        uec_info[i].enet_interface_type =
                                PHY_INTERFACE_MODE_RGMII_RXID;
                        uec_info[i].speed = SPEED_1000;
+               }
        }
        return uec_eth_init(bd, uec_info, ARRAY_SIZE(uec_info));
 }