From 4c3ba019003fea27577bcd91b2ff5f8cf0f4ac9b Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sat, 18 Dec 2010 00:09:55 -0800 Subject: usrp-n210: removed fw warnings, bootloader does full size 16k load --- firmware/microblaze/usrp2p/bootloader_utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'firmware/microblaze/usrp2p/bootloader_utils.c') diff --git a/firmware/microblaze/usrp2p/bootloader_utils.c b/firmware/microblaze/usrp2p/bootloader_utils.c index fa56c199a..379c5f957 100644 --- a/firmware/microblaze/usrp2p/bootloader_utils.c +++ b/firmware/microblaze/usrp2p/bootloader_utils.c @@ -18,8 +18,7 @@ int is_valid_fpga_image(uint32_t addr) { uint8_t imgbuf[64]; spi_flash_read(addr, 64, imgbuf); //we're just looking for leading 0xFF padding, followed by the sync bytes 0xAA 0x99 - int i = 0; - for(i; i<63; i++) { + for(size_t i = 0; i<63; i++) { if(imgbuf[i] == 0xFF) continue; if(imgbuf[i] == 0xAA && imgbuf[i+1] == 0x99) { //printf("is_valid_fpga_image(): found valid FPGA image\n"); -- cgit v1.2.3