Eliminate warnings (one of which looks like a bug)

This commit is contained in:
Gregory Nutt
2016-01-08 11:22:33 -06:00
parent 68e3f5d9ce
commit 278701f93d
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -2229,7 +2229,7 @@ static int avr_epconfigure(FAR struct usbdev_ep_s *ep,
/* Enable interrupts as appropriate for this endpoint */
UEIENX |= uecfg1x;
UEIENX |= ueienx;
return OK;
}
+2 -1
View File
@@ -515,7 +515,9 @@ FAR struct spi_dev_s *up_spiinitialize(int port)
/* Clear status flags by reading them */
regval = SPSR;
UNUSED(regval);
regval = SPDR;
UNUSED(regval);
/* Set the initial SPI configuration */
@@ -538,4 +540,3 @@ FAR struct spi_dev_s *up_spiinitialize(int port)
return &priv->spidev;
}
#endif /* CONFIG_AVR_SPI */