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:
Andreas Klinger 2024-07-13 17:16:41 +02:00 committed by Anas Nashif
parent 8d8fe9d169
commit f89f2ae46c

View file

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