diff --git a/srpt/conftest/rdma_destroy_ah/rdma_destroy_ah.c b/srpt/conftest/rdma_destroy_ah/rdma_destroy_ah.c index fffc5d48b..fdbc74247 100644 --- a/srpt/conftest/rdma_destroy_ah/rdma_destroy_ah.c +++ b/srpt/conftest/rdma_destroy_ah/rdma_destroy_ah.c @@ -4,7 +4,6 @@ static int __init modinit(void) { return rdma_destroy_ah(NULL) != 0; - } module_init(modinit); diff --git a/srpt/conftest/rdma_destroy_ah_with_flags/rdma_destroy_ah_with_flags.c b/srpt/conftest/rdma_destroy_ah_with_flags/rdma_destroy_ah_with_flags.c index 1df996cf0..7616e2af7 100644 --- a/srpt/conftest/rdma_destroy_ah_with_flags/rdma_destroy_ah_with_flags.c +++ b/srpt/conftest/rdma_destroy_ah_with_flags/rdma_destroy_ah_with_flags.c @@ -3,8 +3,9 @@ static int __init modinit(void) { - return rdma_destroy_ah(NULL, 0) != 0; + rdma_destroy_ah(NULL, 0); + return 0; } module_init(modinit);