diff --git a/src/unit-tests/osfile-test/ut_osfile_test.c b/src/unit-tests/osfile-test/ut_osfile_test.c index 0cdcac10e..353fcfd5a 100644 --- a/src/unit-tests/osfile-test/ut_osfile_test.c +++ b/src/unit-tests/osfile-test/ut_osfile_test.c @@ -78,7 +78,7 @@ int32 UT_os_setup_fs() if (res != OS_SUCCESS) { UtPrintf("OS_mkfs() returns %d\n", (int)res); - goto UT_os_setup_fs_exit_tag; + return res; } res = OS_mount(g_devName, g_mntName); @@ -86,10 +86,9 @@ int32 UT_os_setup_fs() { UtPrintf("OS_mount() returns %d\n", (int)res); OS_rmfs(g_devName); - goto UT_os_setup_fs_exit_tag; + return res; } -UT_os_setup_fs_exit_tag: return res; }