summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZYH <[email protected]>2018-09-17 10:06:54 +0800
committerZYH <[email protected]>2018-09-17 10:06:54 +0800
commitcc8ab154728cd62a1ecf2d755e9f39a29cd36e1f (patch)
treee47c580d32fbcfc1164581f88512f367e78c7de2
parent16a7c398d576bcfa95b923e93cf3cb1287c90728 (diff)
[Components][Drivers][SPI]fix "Value stored to 'result' is never read"
-rw-r--r--components/drivers/spi/spi_core.c1
1 files changed, 0 insertions, 1 deletions
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;
}
}