[Components][Drivers][SPI]fix "Value stored to 'result' is never read"

This commit is contained in:
ZYH 2018-09-17 10:06:54 +08:00
parent 16a7c398d5
commit cc8ab15472
1 changed files with 0 additions and 1 deletions

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