fix(console): add missing curly braces
This corrects the MISRA violation C2012-15.6:
The body of an iteration-statement or a selection-statement shall
be a compound-statement. Enclosed statement body within the curly
braces.
Change-Id: I3fffc660cae07ae386d36bad46ae1d528a17b630
Signed-off-by: Saivardhan Thatikonda <saivardhan.thatikonda@amd.com>
diff --git a/drivers/console/multi_console.c b/drivers/console/multi_console.c
index 1210226..89a1b87 100644
--- a/drivers/console/multi_console.c
+++ b/drivers/console/multi_console.c
@@ -39,11 +39,12 @@
assert(to_be_deleted != NULL);
- for (ptr = &console_list; *ptr != NULL; ptr = &(*ptr)->next)
+ for (ptr = &console_list; *ptr != NULL; ptr = &(*ptr)->next) {
if (*ptr == to_be_deleted) {
*ptr = (*ptr)->next;
return to_be_deleted;
}
+ }
return NULL;
}