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:
Anas Nashif 2022-07-06 08:05:26 -04:00
commit 718750f962
2 changed files with 4 additions and 2 deletions

View file

@ -121,8 +121,9 @@ static int fs_get_mnt_point(struct fs_mount_t **mnt_pntp,
} }
*mnt_pntp = mnt_p; *mnt_pntp = mnt_p;
if (match_len) if (match_len) {
*match_len = mnt_p->mountp_len; *match_len = mnt_p->mountp_len;
}
return 0; return 0;
} }

View file

@ -106,8 +106,9 @@ static void free_parameter(struct parameter *param)
{ {
unsigned int allocation_index = param - params; unsigned int allocation_index = param - params;
if (param == NULL) if (param == NULL) {
return; return;
}
__ASSERT(allocation_index < CONFIG_ZTEST_PARAMETER_COUNT, __ASSERT(allocation_index < CONFIG_ZTEST_PARAMETER_COUNT,
"param %p given to free is not in the static buffer %p:%u", "param %p given to free is not in the static buffer %p:%u",
param, params, CONFIG_ZTEST_PARAMETER_COUNT); param, params, CONFIG_ZTEST_PARAMETER_COUNT);