bluetooth: fix dev->rxlen is considered to have possibly overflowed

rootcause: fix the expression dev->rxlen is considered to
have possibly overflowed.

Signed-off-by: chengkai <chengkai@xiaomi.com>
This commit is contained in:
chengkai 2024-03-25 16:24:28 +08:00 committed by Xiang Xiao
parent 3fb63c20d4
commit 113b660aa6
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ static int bthcisock_receive(struct bt_driver_s *drv)
return ret;
}
dev->rxlen += ret;
dev->rxlen += (uint16_t)ret;
while (dev->rxlen)
{