drivers: serial: nrf_uarte: Fix checkpatch issues

Fixing checkpatch issues. No functional changes.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2021-05-10 14:42:00 +02:00 committed by Carles Cufí
commit 0ee3da91ac

View file

@ -681,10 +681,9 @@ static int uarte_nrfx_tx(const struct device *dev, const uint8_t *buf,
if (data->async->tx_size) {
irq_unlock(key);
return -EBUSY;
} else {
data->async->tx_size = len;
}
data->async->tx_size = len;
nrf_uarte_int_enable(uarte, NRF_UARTE_INT_TXSTOPPED_MASK);
if (!is_tx_ready(dev)) {
@ -838,7 +837,7 @@ static int uarte_nrfx_rx_buf_rsp(const struct device *dev, uint8_t *buf,
NRF_UARTE_Type *uarte = get_uarte_instance(dev);
int key = irq_lock();
if ((data->async->rx_buf == NULL)) {
if (data->async->rx_buf == NULL) {
err = -EACCES;
} else if (data->async->rx_next_buf == NULL) {
data->async->rx_next_buf = buf;