misra-c: Add 'U' to unsigned variable assignments in subsys/
Add 'U' to a value when assigning it to an unsigned variable. MISRA-C rule 7.2 Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
This commit is contained in:
parent
079f55d519
commit
b97db52de7
139 changed files with 1198 additions and 1198 deletions
|
@ -1057,7 +1057,7 @@ static void bt_conn_reset_rx_state(struct bt_conn *conn)
|
|||
|
||||
net_buf_unref(conn->rx);
|
||||
conn->rx = NULL;
|
||||
conn->rx_len = 0;
|
||||
conn->rx_len = 0U;
|
||||
}
|
||||
|
||||
void bt_conn_recv(struct bt_conn *conn, struct net_buf *buf, u8_t flags)
|
||||
|
@ -1122,7 +1122,7 @@ void bt_conn_recv(struct bt_conn *conn, struct net_buf *buf, u8_t flags)
|
|||
|
||||
buf = conn->rx;
|
||||
conn->rx = NULL;
|
||||
conn->rx_len = 0;
|
||||
conn->rx_len = 0U;
|
||||
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue