net/semantic/parser: fix compile warning found by sparse

Reference:
https://linux.die.net/man/1/sparse

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2023-05-30 13:28:05 +08:00 committed by Xiang Xiao
parent fb9b41221d
commit 589d4a9f8e
11 changed files with 19 additions and 16 deletions

View file

@ -150,9 +150,9 @@ int bt_gatt_attr_read_service(FAR struct bt_conn_s *conn,
sizeof(uuid->u.u128));
}
int bt_gatt_attr_read_include(FAR struct bt_conn_s *conn,
FAR const struct bt_gatt_attr_s *attr,
FAR void *buf, uint8_t len, uint16_t offset)
int bt_gatt_attr_read_included(FAR struct bt_conn_s *conn,
FAR const struct bt_gatt_attr_s *attr,
FAR void *buf, uint8_t len, uint16_t offset)
{
FAR struct bt_gatt_include_s *incl = attr->user_data;
struct gatt_incl_s pdu;