[PATCH v1 0/3] Bluetooth: fix recv_buf() return value
From: Francesco Dolcini
Date: Mon Nov 27 2023 - 14:14:36 EST
From: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx>
Serdev recv_buf() callback is supposed to return the amount of bytes consumed, therefore an int in between 0 and count.
Do not return negative number in case of issue, just print an error and return count. This fixes a WARN in ttyport_receive_buf().
In addition to that a small cleanup patch is added on btnxpuart to remove a useless assignment.
Francesco Dolcini (3):
Bluetooth: btnxpuart: fix recv_buf() return value
Bluetooth: btmtkuart: fix recv_buf() return value
Bluetooth: btnxpuart: remove useless assignment
drivers/bluetooth/btmtkuart.c | 11 +++--------
drivers/bluetooth/btnxpuart.c | 8 +++-----
2 files changed, 6 insertions(+), 13 deletions(-)
--
2.25.1