drivers: gnss: clean up labels
Clean up labels no longer needed. Signed-off-by: Andreas Klinger <ak@it-klinger.de>
This commit is contained in:
parent
8d8fe9d169
commit
f89f2ae46c
1 changed files with 0 additions and 7 deletions
|
|
@ -393,17 +393,10 @@ static int ubx_m10_set_uart_baudrate(const struct device *dev, uint32_t baudrate
|
|||
uart_cfg.baudrate = baudrate;
|
||||
|
||||
ret = uart_configure(config->uart, &uart_cfg);
|
||||
if (ret < 0) {
|
||||
goto reset_and_unlock;
|
||||
}
|
||||
|
||||
reset_and_unlock:
|
||||
ret |= ubx_m10_resume(dev);
|
||||
if (ret < 0) {
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
unlock:
|
||||
k_spin_unlock(&data->lock, key);
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue