Skip to content

Commit c442d75

Browse files
committed
tst_test.c: Change run_tcase_on_fs() return type to void
Return code is not used any more. Link: https://lore.kernel.org/ltp/20251107102939.1111074-8-pvorel@suse.cz/ Fixes: a1f8270 ("lib/tst_test.c: Fix tst_brk() handling") Reviewed-by: Avinesh Kumar <akumar@suse.de> Signed-off-by: Petr Vorel <pvorel@suse.cz>
1 parent 21f87ce commit c442d75

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/tst_test.c

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,29 +1963,27 @@ static struct tst_fs *lookup_fs_desc(const char *fs_type, int all_filesystems)
19631963
return &tst_test->filesystems[0];
19641964
}
19651965

1966-
static int run_tcase_on_fs(struct tst_fs *fs, const char *fs_type)
1966+
static void run_tcase_on_fs(struct tst_fs *fs, const char *fs_type)
19671967
{
1968-
int ret;
1969-
19701968
tst_res(TINFO, "=== Testing on %s ===", fs_type);
19711969
tdev.fs_type = fs_type;
19721970

19731971
if (fs->mkfs_ver && !tst_check_cmd(fs->mkfs_ver, 0))
1974-
return TCONF;
1972+
return;
19751973

19761974
if (fs->min_kver && !check_kver(fs->min_kver, 0))
1977-
return TCONF;
1975+
return;
19781976

19791977
prepare_device(fs);
19801978

1981-
ret = fork_testrun();
1979+
fork_testrun();
19821980

19831981
if (context->mntpoint_mounted) {
19841982
tst_umount(tst_test->mntpoint);
19851983
context->mntpoint_mounted = 0;
19861984
}
19871985

1988-
return ret;
1986+
return;
19891987
}
19901988

19911989
static void run_tcases_per_fs(void)

0 commit comments

Comments
 (0)