Ignore:
File:
1 edited

Legend:

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

    r86d7bfa r9c31643  
    294294}
    295295
    296 /** Connection hash table removal callback function.
    297  *
    298  * This function is called whenever a connection is removed from the connection
    299  * hash table.
    300  *
    301  * @param item Connection hash table item being removed.
    302  *
    303  */
    304296static void conn_remove(link_t *item)
    305297{
    306         free(hash_table_get_instance(item, connection_t, link));
    307298}
    308299
     
    439430       
    440431        fid_t fid = fibril_create(notification_fibril, msg);
    441         if (fid == 0) {
    442                 free(msg);
    443                 futex_up(&async_futex);
    444                 return false;
    445         }
    446        
    447432        fibril_add_ready(fid);
    448433       
     
    647632                ipc_answer_0(FIBRIL_connection->close_callid, EOK);
    648633       
     634        free(FIBRIL_connection);
    649635        return 0;
    650636}
     
    695681        conn->wdata.fid = fibril_create(connection_fibril, conn);
    696682       
    697         if (conn->wdata.fid == 0) {
     683        if (!conn->wdata.fid) {
    698684                free(conn);
    699                
    700685                if (callid)
    701686                        ipc_answer_0(callid, ENOMEM);
    702                
    703687                return (uintptr_t) NULL;
    704688        }
     
    869853{
    870854        fid_t fid = fibril_create(async_manager_fibril, NULL);
    871         if (fid != 0)
    872                 fibril_add_manager(fid);
     855        fibril_add_manager(fid);
    873856}
    874857
Note: See TracChangeset for help on using the changeset viewer.