diff --git a/subsys/fs/fs.c b/subsys/fs/fs.c index 687c5f0bee8..91aedc1af2d 100644 --- a/subsys/fs/fs.c +++ b/subsys/fs/fs.c @@ -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; } diff --git a/subsys/testsuite/ztest/src/ztest_mock.c b/subsys/testsuite/ztest/src/ztest_mock.c index 6f2fbdd91db..4ed369eb440 100644 --- a/subsys/testsuite/ztest/src/ztest_mock.c +++ b/subsys/testsuite/ztest/src/ztest_mock.c @@ -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);