Changes in uspace/drv/uhci/callback.c [44d8853:0b68b7c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified uspace/drv/uhci/callback.c ¶
r44d8853 r0b68b7c 9 9 assert(instance); 10 10 assert(func_in == NULL || func_out == NULL); 11 if (size > 0) { 12 instance->new_buffer = malloc32(size); 13 if (!instance->new_buffer) { 14 uhci_print_error("Failed to allocate device acessible buffer.\n"); 15 return ENOMEM; 16 } 17 if (func_out) 18 memcpy(instance->new_buffer, buffer, size); 19 } else { 20 instance->new_buffer = NULL; 11 instance->new_buffer = malloc32(size); 12 if (!instance->new_buffer) { 13 uhci_print_error("Failed to allocate device acessible buffer.\n"); 14 return ENOMEM; 21 15 } 22 16 17 if (func_out) 18 memcpy(instance->new_buffer, buffer, size); 23 19 24 20 instance->callback_out = func_out;
Note:
See TracChangeset
for help on using the changeset viewer.