Changeset 7fa8589 in mainline for uspace/lib/c/generic/loc.c


Ignore:
Timestamp:
2020-01-09T01:04:58Z (4 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
bcd7775
Parents:
76c8209
git-author:
Matthieu Riolo <matthieu.riolo@…> (2020-01-05 20:21:10)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2020-01-09 01:04:58)
Message:

Removing unneeded casts from errno_t to errno_t

File:
1 edited

Legend:

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

    r76c8209 r7fa8589  
    314314errno_t loc_service_unregister(service_id_t sid)
    315315{
    316         async_exch_t *exch;
    317         errno_t retval;
    318 
    319         exch = loc_exchange_begin_blocking(INTERFACE_LOC_SUPPLIER);
    320         retval = async_req_1_0(exch, LOC_SERVICE_UNREGISTER, sid);
    321         loc_exchange_end(exch);
    322 
    323         return (errno_t)retval;
     316        async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_SUPPLIER);
     317        errno_t rc = async_req_1_0(exch, LOC_SERVICE_UNREGISTER, sid);
     318        loc_exchange_end(exch);
     319        return rc;
    324320}
    325321
Note: See TracChangeset for help on using the changeset viewer.