Ignore:
File:
1 edited

Legend:

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

    r8bf1eeb r9c31643  
    430430       
    431431        fid_t fid = fibril_create(notification_fibril, msg);
    432         if (fid == 0) {
    433                 free(msg);
    434                 futex_up(&async_futex);
    435                 return false;
    436         }
    437        
    438432        fibril_add_ready(fid);
    439433       
     
    687681        conn->wdata.fid = fibril_create(connection_fibril, conn);
    688682       
    689         if (conn->wdata.fid == 0) {
     683        if (!conn->wdata.fid) {
    690684                free(conn);
    691                
    692685                if (callid)
    693686                        ipc_answer_0(callid, ENOMEM);
    694                
    695687                return (uintptr_t) NULL;
    696688        }
     
    861853{
    862854        fid_t fid = fibril_create(async_manager_fibril, NULL);
    863         if (fid != 0)
    864                 fibril_add_manager(fid);
     855        fibril_add_manager(fid);
    865856}
    866857
     
    15671558}
    15681559
    1569 /** Start IPC_M_DATA_READ using the async framework.
    1570  *
    1571  * @param phoneid Phone that will be used to contact the receiving side.
    1572  * @param dst Address of the beginning of the destination buffer.
    1573  * @param size Size of the destination buffer (in bytes).
    1574  * @param dataptr Storage of call data (arg 2 holds actual data size).
    1575  * @return Hash of the sent message or 0 on error.
    1576  */
    1577 aid_t async_data_read(int phoneid, void *dst, size_t size, ipc_call_t *dataptr)
    1578 {
    1579         return async_send_2(phoneid, IPC_M_DATA_READ, (sysarg_t) dst,
    1580             (sysarg_t) size, dataptr);
    1581 }
    1582 
    15831560/** Wrapper for IPC_M_DATA_READ calls using the async framework.
    15841561 *
Note: See TracChangeset for help on using the changeset viewer.