diff --git a/components/drivers/spi/dev_spi_core.c b/components/drivers/spi/dev_spi_core.c index cef4d0a811..648195544d 100644 --- a/components/drivers/spi/dev_spi_core.c +++ b/components/drivers/spi/dev_spi_core.c @@ -111,7 +111,7 @@ rt_err_t rt_spi_bus_configure(struct rt_spi_device *device) /* RT_EBUSY is not an error condition and * the configuration will take effect once the device has the bus */ - return -RT_EBUSY; + result = -RT_EBUSY; } /* release lock */