]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/thread.c
*: do not check XMALLOC / XCALLOC for null ret
[mirror_frr.git] / lib / thread.c
index 055587434ccfc9ec06d0877b910e5487ebd7e9e1..e757ff639bb0c26db06d9d3198cb268db2de9e87 100644 (file)
@@ -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);