Skip to content

Commit ec7a3dd

Browse files
committed
rtl8195am - fix missing braces around empty body warning
osdep_service.c@214,61: suggest braces around empty body in an 'else' statement [-Wempty-body] Signed-off-by: Tony Wu <[email protected]>
1 parent 885b4cc commit ec7a3dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/sdk/os/os_dep/osdep_service.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,11 @@ void add_mem_usage(_list *pmem_table, void *ptr, int size, int *used_num, int fl
208208
return;
209209
}
210210
else{
211-
if(flag == MEM_MONITOR_FLAG_WPAS)
211+
if(flag == MEM_MONITOR_FLAG_WPAS) {
212212
DBG_INFO("Alloc memory at %p with size of %d", ptr, size);
213-
else
213+
} else {
214214
DBG_INFO("Alloc memory at %p with size of %d", ptr, size);
215+
}
215216
}
216217
#if CONFIG_MEM_MONITOR & MEM_MONITOR_LEAK
217218
mem_entry = (struct mem_entry *) _rtw_malloc(sizeof(struct mem_entry));

0 commit comments

Comments
 (0)