fs/testsuite: add mising braces to single line if statements
Following zephyr's style guideline, all if statements, including single line statements shall have braces. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
077c979f6c
commit
718750f962
2 changed files with 4 additions and 2 deletions
|
@ -121,8 +121,9 @@ static int fs_get_mnt_point(struct fs_mount_t **mnt_pntp,
|
|||
}
|
||||
|
||||
*mnt_pntp = mnt_p;
|
||||
if (match_len)
|
||||
if (match_len) {
|
||||
*match_len = mnt_p->mountp_len;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -106,8 +106,9 @@ static void free_parameter(struct parameter *param)
|
|||
{
|
||||
unsigned int allocation_index = param - params;
|
||||
|
||||
if (param == NULL)
|
||||
if (param == NULL) {
|
||||
return;
|
||||
}
|
||||
__ASSERT(allocation_index < CONFIG_ZTEST_PARAMETER_COUNT,
|
||||
"param %p given to free is not in the static buffer %p:%u",
|
||||
param, params, CONFIG_ZTEST_PARAMETER_COUNT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue