style: add braces around if/while statements
Per guidelines, all statements should have braces around them. We do not have a CI check for this, so a few went in unnoticed. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
912e117e9e
commit
4c32258606
63 changed files with 281 additions and 195 deletions
|
@ -448,8 +448,9 @@ static void buffer_trim(char *buff, u16_t *buff_len)
|
|||
/* Counting whitespace characters starting from beginning of the
|
||||
* command.
|
||||
*/
|
||||
while (isspace((int) buff[i++]))
|
||||
;
|
||||
while (isspace((int) buff[i++])) {
|
||||
}
|
||||
|
||||
|
||||
/* Removing counted whitespace characters. */
|
||||
if (--i > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue