From cc8ab154728cd62a1ecf2d755e9f39a29cd36e1f Mon Sep 17 00:00:00 2001 From: ZYH Date: Mon, 17 Sep 2018 10:06:54 +0800 Subject: [PATCH] [Components][Drivers][SPI]fix "Value stored to 'result' is never read" --- components/drivers/spi/spi_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/components/drivers/spi/spi_core.c b/components/drivers/spi/spi_core.c index 4ab843a9fd..33d2f40f8f 100644 --- a/components/drivers/spi/spi_core.c +++ b/components/drivers/spi/spi_core.c @@ -360,7 +360,6 @@ struct rt_spi_message *rt_spi_transfer_message(struct rt_spi_device *device, { /* configure SPI bus failed */ rt_set_errno(-RT_EIO); - result = 0; goto __exit; } }