diff --git a/board/esd/common/fpga.c b/board/esd/common/fpga.c index aab5509..dc92662 100644 --- a/board/esd/common/fpga.c +++ b/board/esd/common/fpga.c @@ -96,10 +96,10 @@ static int fpga_boot(const unsigned char *fpgadata, int size) { int i,index,len; int count; + unsigned char b; #ifdef CFG_FPGA_SPARTAN2 int j; #else - unsigned char b; int bit; #endif @@ -196,9 +196,10 @@ static int fpga_boot(const unsigned char *fpgadata, int size) */ for (i=index; i