~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to uspace/lib/fs/libfs.c

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
319
319
        
320
320
        if (rc != EOK) {
321
321
                async_exchange_end(exch);
322
 
                async_wait_for(req, NULL);
 
322
                async_forget(req);
323
323
                return rc;
324
324
        }
325
325
        
340
340
        rc = async_share_in_start_0_0(exch, PLB_SIZE, (void *) &reg.plb_ro);
341
341
        if (reg.plb_ro == (void *) -1) {
342
342
                async_exchange_end(exch);
343
 
                async_wait_for(req, NULL);
 
343
                async_forget(req);
344
344
                return ENOMEM;
345
345
        }
346
346
        
347
347
        async_exchange_end(exch);
348
348
        
349
349
        if (rc) {
350
 
                async_wait_for(req, NULL);
 
350
                async_forget(req);
351
351
                return rc;
352
352
        }
353
353