Changeset 9a66bc2 in mainline for uspace/lib/libc/generic/device/hw_res.c
- Timestamp:
- 2010-04-04T21:52:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8c06905
- Parents:
- 5cd136ab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/device/hw_res.c
r5cd136ab r9a66bc2 52 52 hw_resources->resources = (hw_resource_t *)malloc(size); 53 53 if (NULL == hw_resources->resources) { 54 size = 0; 55 ret = false; 54 return false; 56 55 } 57 56 … … 60 59 free(hw_resources->resources); 61 60 hw_resources->resources = NULL; 62 ret =false;61 return false; 63 62 } 64 63 65 return ret;64 return true; 66 65 } 67 66
Note:
See TracChangeset
for help on using the changeset viewer.