Changeset cf02eaf in mainline for uspace/lib/c/generic/device/hw_res.c


Ignore:
Timestamp:
2013-08-22T16:01:19Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5b1adf5
Parents:
a6bdccc
Message:

small cstyle changes (mostly reverting to the state before audio merge)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/device/hw_res.c

    ra6bdccc rcf02eaf  
    4242{
    4343        sysarg_t count = 0;
    44 
     44       
    4545        async_exch_t *exch = async_exchange_begin(sess);
    4646        if (exch == NULL)
     
    4848        int rc = async_req_1_1(exch, DEV_IFACE_ID(HW_RES_DEV_IFACE),
    4949            HW_RES_GET_RESOURCE_LIST, &count);
    50 
     50       
    5151        if (rc != EOK) {
    5252                async_exchange_end(exch);
    5353                return rc;
    5454        }
    55 
     55       
    5656        size_t size = count * sizeof(hw_resource_t);
    5757        hw_resource_t *resources = (hw_resource_t *) malloc(size);
     
    6161                return ENOMEM;
    6262        }
    63 
     63       
    6464        rc = async_data_read_start(exch, resources, size);
    6565        async_exchange_end(exch);
    66 
     66       
    6767        if (rc != EOK) {
    6868                free(resources);
    6969                return rc;
    7070        }
    71 
     71       
    7272        hw_resources->resources = resources;
    7373        hw_resources->count = count;
    74 
     74       
    7575        return EOK;
    7676}
     
    8484            HW_RES_ENABLE_INTERRUPT);
    8585        async_exchange_end(exch);
    86 
     86       
    8787        return (rc == EOK);
    8888}
Note: See TracChangeset for help on using the changeset viewer.