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:
Patrik Flykt 2018-11-29 11:23:03 -08:00 committed by Anas Nashif
commit b97db52de7
139 changed files with 1198 additions and 1198 deletions

View file

@ -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: