diff options
Diffstat (limited to 'nuttx/arch/z80/src/ez80/ez80_spi.c')
-rw-r--r-- | nuttx/arch/z80/src/ez80/ez80_spi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nuttx/arch/z80/src/ez80/ez80_spi.c b/nuttx/arch/z80/src/ez80/ez80_spi.c index 8a6eab663..5757f4ed6 100644 --- a/nuttx/arch/z80/src/ez80/ez80_spi.c +++ b/nuttx/arch/z80/src/ez80/ez80_spi.c @@ -359,13 +359,12 @@ static void spi_sndblock(FAR struct spi_dev_s *dev, FAR const void *buffer, size_t buflen) { FAR const uint8_t *ptr = (FAR const uint8_t*)buffer; - uint8_t response; /* Loop while there are bytes remaining to be sent */ while (buflen-- > 0) { - response = spi_transfer(*ptr++); + (void)spi_transfer(*ptr++); } } |