Changeset 3d23553 in mainline for kernel/generic/src/sysinfo/sysinfo.c


Ignore:
Timestamp:
2012-03-01T22:57:09Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5869ce0
Parents:
4546fc3
Message:

cstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/sysinfo/sysinfo.c

    r4546fc3 r3d23553  
    9999            sizeof(sysinfo_item_t), 0, sysinfo_item_constructor,
    100100            sysinfo_item_destructor, SLAB_CACHE_MAGDEFERRED);
    101 
     101       
    102102        mutex_initialize(&sysinfo_lock, MUTEX_ACTIVE);
    103103}
     
    635635        ASSERT(path);
    636636       
    637         if ((copy_from_uspace(path, ptr, size + 1) == 0)
    638             && (path[size] == 0)) {
     637        if ((copy_from_uspace(path, ptr, size + 1) == 0) &&
     638            (path[size] == 0)) {
    639639                /*
    640640                 * Prevent other functions from messing with sysinfo while we
     
    645645                mutex_unlock(&sysinfo_lock);
    646646        }
     647       
    647648        free(path);
    648649        return ret;
     
    672673       
    673674        /*
    674          * Map generated value types to constant types (user space does not care
    675          * whether the value is constant or generated).
     675         * Map generated value types to constant types (user space does
     676         * not care whether the value is constant or generated).
    676677         */
    677678        if (ret.tag == SYSINFO_VAL_FUNCTION_VAL)
     
    701702{
    702703        int rc;
    703 
     704       
    704705        /*
    705706         * Get the item.
    706707         *
    707          * N.B.: There is no need to free any potential generated binary data
    708          * since we request a dry run.
     708         * N.B.: There is no need to free any potential generated binary
     709         * data since we request a dry run.
    709710         */
    710711        sysinfo_return_t ret = sysinfo_get_item_uspace(path_ptr, path_size, true);
     
    741742         * Get the item.
    742743         *
    743          * N.B.: There is no need to free any potential generated binary data
    744          * since we request a dry run.
     744         * N.B.: There is no need to free any potential generated binary
     745         * data since we request a dry run.
    745746         */
    746747        sysinfo_return_t ret = sysinfo_get_item_uspace(path_ptr, path_size, true);
Note: See TracChangeset for help on using the changeset viewer.