4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 20:03:48 +08:00

Merge pull request #1818 from uestczyh222/CLA

[Components][Drivers][SPI]fix "Value stored to 'result' is never read"
This commit is contained in:
Bernard Xiong 2018-09-17 14:20:59 +08:00 committed by GitHub
commit d41212fd20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}