diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-25 19:43:09 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-25 23:00:44 +0000 |
| commit | 76f014689093aa8eecc1061e13cc4f8694967a12 (patch) | |
| tree | d68df7e97b46f672cd944e89e62d823149781d07 /lib/thread.c | |
| parent | 97b5d752d7af198d0b2881b5a3b2e61f2b4921e5 (diff) | |
*: do not check XMALLOC / XCALLOC for null ret
They never return NULL
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/thread.c')
| -rw-r--r-- | lib/thread.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/thread.c b/lib/thread.c index 055587434c..e757ff639b 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -414,8 +414,6 @@ struct thread_master *thread_master_create(const char *name) pthread_once(&init_once, &initializer); rv = XCALLOC(MTYPE_THREAD_MASTER, sizeof(struct thread_master)); - if (rv == NULL) - return NULL; /* Initialize master mutex */ pthread_mutex_init(&rv->mtx, NULL); |
