Changeset 9a66bc2e in mainline for uspace/lib/libc/generic


Ignore:
Timestamp:
2010-04-04T21:52:26Z (15 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8c06905
Parents:
5cd136ab
Message:

several bugs fixed

File:
1 edited

Legend:

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

    r5cd136ab r9a66bc2e  
    5252        hw_resources->resources = (hw_resource_t *)malloc(size);
    5353        if (NULL == hw_resources->resources) {
    54                 size = 0;
    55                 ret = false;
     54                return false;
    5655        }
    5756       
     
    6059                free(hw_resources->resources);
    6160                hw_resources->resources = NULL;
    62                 ret = false;
     61                return false;
    6362        }
    6463                 
    65         return ret;     
     64        return true;     
    6665}
    6766
Note: See TracChangeset for help on using the changeset viewer.