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
|
@ -109,7 +109,7 @@ static int log_status(const struct shell *shell,
|
|||
shell_fprintf(shell, SHELL_NORMAL,
|
||||
"----------------------------------------------------------\r\n");
|
||||
|
||||
for (i = 0; i < modules_cnt; i++) {
|
||||
for (i = 0U; i < modules_cnt; i++) {
|
||||
dynamic_lvl = log_filter_get(backend, CONFIG_LOG_DOMAIN_ID,
|
||||
i, true);
|
||||
compiled_lvl = log_filter_get(backend, CONFIG_LOG_DOMAIN_ID,
|
||||
|
@ -148,7 +148,7 @@ static int module_id_get(const char *name)
|
|||
const char *tmp_name;
|
||||
u32_t i;
|
||||
|
||||
for (i = 0; i < modules_cnt; i++) {
|
||||
for (i = 0U; i < modules_cnt; i++) {
|
||||
tmp_name = log_source_name_get(CONFIG_LOG_DOMAIN_ID, i);
|
||||
|
||||
if (strncmp(tmp_name, name, 64) == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue