Changes in uspace/lib/usbvirt/src/callback.c [bd8c753d:0eddb76] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbvirt/src/callback.c
rbd8c753d r0eddb76 27 27 */ 28 28 29 /** @addtogroup libusbvirt 29 /** @addtogroup libusbvirt usb 30 30 * @{ 31 31 */ … … 153 153 * If the request was processed, we will send data back. 154 154 */ 155 if ( (rc == EOK) && (expected_len > 0)) {155 if (rc == EOK) { 156 156 size_t receive_len; 157 157 ipc_callid_t callid; … … 160 160 return; 161 161 } 162 if (len > receive_len) { 163 len = receive_len; 164 } 165 async_data_read_finalize(callid, buffer, len); 166 } 167 168 ipc_answer_1(iid, rc, len); 162 async_data_read_finalize(callid, buffer, receive_len); 163 } 164 165 ipc_answer_0(iid, rc); 169 166 } 170 167 … … 204 201 205 202 callid = async_get_call(&call); 206 switch (IPC_GET_ IMETHOD(call)) {203 switch (IPC_GET_METHOD(call)) { 207 204 case IPC_M_PHONE_HUNGUP: 208 205 ipc_answer_0(callid, EOK);
Note:
See TracChangeset
for help on using the changeset viewer.