mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 09:08:25 +00:00
[Components][Drivers][SPI]fix "Value stored to 'result' is never read"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user