Changeset 50b581d in mainline for uspace/lib/usbvirt


Ignore:
Timestamp:
2012-04-21T09:23:39Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d3a8e47
Parents:
0d520a2
Message:

Replace the async_wait_for(msg, NULL) pattern in the error paths with
async_forget(msg).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbvirt/src/ipc_hc.c

    r0d520a2 r50b581d  
    8080        if (rc != EOK) {
    8181                async_exchange_end(exch);
    82                 async_wait_for(opening_request, NULL);
     82                async_forget(opening_request);
    8383                return rc;
    8484        }
     
    9191       
    9292        if (data_request == 0) {
    93                 async_wait_for(opening_request, NULL);
     93                async_forget(opening_request);
    9494                return ENOMEM;
    9595        }
     
    153153        if (rc != EOK) {
    154154                async_exchange_end(exch);
    155                 async_wait_for(opening_request, NULL);
     155                async_forget(opening_request);
    156156                return rc;
    157157        }
     
    161161                if (rc != EOK) {
    162162                        async_exchange_end(exch);
    163                         async_wait_for(opening_request, NULL);
     163                        async_forget(opening_request);
    164164                        return rc;
    165165                }
     
    226226       
    227227        if (data_request == 0) {
    228                 async_wait_for(opening_request, NULL);
     228                async_forget(opening_request);
    229229                return ENOMEM;
    230230        }
     
    301301       
    302302        if (rc != EOK) {
    303                 async_wait_for(opening_request, NULL);
     303                async_forget(opening_request);
    304304                return rc;
    305305        }
Note: See TracChangeset for help on using the changeset viewer.