Browse Source

projects/riscv_usb/fw: Minor warning fixes

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut 4 years ago
parent
commit
01b4fc0568
1 changed files with 1 additions and 1 deletions
  1. 1 1
      projects/riscv_usb/fw/spi.c

+ 1 - 1
projects/riscv_usb/fw/spi.c

@@ -89,7 +89,7 @@ spi_xfer(unsigned cs, struct spi_xfer_chunk *xfer, unsigned n)
 
 	/* Run the chunks */
 	while (n--) {
-		for (int i=0; i<xfer->len; i++)
+		for (unsigned int i=0; i<xfer->len; i++)
 		{
 			spi_regs->txdr = xfer->write ? xfer->data[i] : 0x00;
 			while (!(spi_regs->sr & SPI_SR_RRDY));