treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / tools / lib / lockdep / tests / unlock_balance.c
blobdba25064b50a83d4b0e5a8b1d6140b0c81c22817
1 // SPDX-License-Identifier: GPL-2.0
2 #include <liblockdep/mutex.h>
4 void main(void)
6 pthread_mutex_t a;
8 pthread_mutex_init(&a, NULL);
10 pthread_mutex_lock(&a);
11 pthread_mutex_unlock(&a);
12 pthread_mutex_unlock(&a);
14 pthread_mutex_destroy(&a);