We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7d8220 commit d17fafbCopy full SHA for d17fafb
components/drivers/spi/dev_spi_core.c
@@ -150,17 +150,17 @@ rt_err_t rt_spi_bus_configure(struct rt_spi_device *device)
150
LOG_E("SPI device %s configuration failed", device->parent.parent.name);
151
}
152
153
- else
154
- {
155
- /* RT_EBUSY is not an error condition and
156
- * the configuration will take effect once the device has the bus
157
- */
158
- result = -RT_EBUSY;
159
- }
160
161
/* release lock */
162
rt_mutex_release(&(device->bus->lock));
163
+ else
+ {
+ /* RT_EBUSY is not an error condition and
+ * the configuration will take effect once the device has the bus
+ */
+ result = -RT_EBUSY;
+ }
164
165
else
166
{
0 commit comments