Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/tls.c

    r0d57c3e r9d58539  
    4242#include <str.h>
    4343#include <align.h>
    44 #include <unistd.h>
    4544
    4645/** Create TLS (Thread Local Storage) data structures.
     
    5857       
    5958        tcb = __alloc_tls(&data, tls_size);
    60         if (!tcb)
    61                 return NULL;
    6259       
    6360        /*
     
    9289
    9390        result = malloc(sizeof(tcb_t) + size);
    94         if (!result)
    95                 return NULL;
    9691        *data = ((void *)result) + sizeof(tcb_t);
    97 
    9892        return result;
    9993}
     
    124118        size = ALIGN_UP(size, &_tls_alignment);
    125119        *data = memalign((uintptr_t) &_tls_alignment, sizeof(tcb_t) + size);
    126         if (!*data)
    127                 return NULL;
     120
    128121        tcb = (tcb_t *) (*data + size);
    129122        tcb->self = tcb;
Note: See TracChangeset for help on using the changeset viewer.