treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / tools / testing / selftests / membarrier / membarrier_test_single_thread.c
blobc1c963902854c5e0ab543a546f58ed0a6b21f345
1 // SPDX-License-Identifier: GPL-2.0
2 #define _GNU_SOURCE
3 #include <linux/membarrier.h>
4 #include <syscall.h>
5 #include <stdio.h>
6 #include <errno.h>
7 #include <string.h>
8 #include <pthread.h>
10 #include "membarrier_test_impl.h"
12 int main(int argc, char **argv)
14 ksft_print_header();
15 ksft_set_plan(13);
17 test_membarrier_query();
19 test_membarrier_fail();
21 test_membarrier_success();
23 return ksft_exit_pass();