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:
parent
1ddfea32bf
commit
0ee3da91ac
1 changed files with 11 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue