mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 05:50:17 +00:00 
			
		
		
		
	mpc83xx: mpc8360emds - fix gcc 4.6 compiler warning
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>
This commit is contained in:
		
							parent
							
								
									9da752e97f
								
							
						
					
					
						commit
						b86c770973
					
				@ -172,11 +172,12 @@ 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));
 | 
			
		||||
}
 | 
			
		||||
#endif /* CONFIG_UEC_ETH */
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user