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:
parent
3fb63c20d4
commit
113b660aa6
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue