Revert "ANDROID: GKI: Return ERROR value on KUnit load fail"

This reverts commit 39f5348cf7 as it
conflicts with upstream kunit changes in 6.0-rc1.

If this is still needed, please submit upstream.

Bug: 231160619
Cc: Joe Fradley <joefradley@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I17cc72883f87ab7647cc9e21e7770f79f5400a65
This commit is contained in:
Greg Kroah-Hartman
2022-08-04 16:58:18 +02:00
parent f4bc2f920e
commit 309ee5fffd

View File

@@ -595,7 +595,7 @@ int __kunit_test_suites_init(struct kunit_suite * const * const suites)
if (!enable_param) {
pr_info("kunit: deactivated, cannot load %s\n",
suites != NULL ? suites[0]->name : "NULL");
return -EPERM;
return -1;
}
for (i = 0; suites[i] != NULL; i++) {