Changes in uspace/lib/c/generic/devman.c [e6211f8:79ae36dd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/devman.c
re6211f8 r79ae36dd 231 231 } 232 232 233 async_wait_for(req, &retval); 234 if (retval != EOK) { 235 devman_exchange_end(exch); 236 237 if (funh != NULL) 238 *funh = -1; 239 240 return retval; 241 } 242 243 if (funh != NULL) 244 *funh = (int) IPC_GET_ARG1(answer); 245 233 246 link_t *link = match_ids->ids.next; 234 247 match_id_t *match_id = NULL; … … 237 250 match_id = list_get_instance(link, match_id_t, link); 238 251 239 ipc_call_t answer 2;240 aid_t req 2= async_send_1(exch, DEVMAN_ADD_MATCH_ID,241 match_id->score, &answer 2);252 ipc_call_t answer; 253 aid_t req = async_send_1(exch, DEVMAN_ADD_MATCH_ID, 254 match_id->score, &answer); 242 255 retval = async_data_write_start(exch, match_id->id, 243 256 str_size(match_id->id)); 244 if (retval != EOK) {245 devman_exchange_end(exch);246 async_wait_for(req2, NULL);247 async_wait_for(req, NULL);248 return retval;249 }250 251 async_wait_for(req2, &retval);252 257 if (retval != EOK) { 253 258 devman_exchange_end(exch); … … 256 261 } 257 262 263 async_wait_for(req, &retval); 264 if (retval != EOK) { 265 devman_exchange_end(exch); 266 return retval; 267 } 268 258 269 link = link->next; 259 270 } 260 271 261 272 devman_exchange_end(exch); 262 263 async_wait_for(req, &retval); 264 if (retval == EOK) { 265 if (funh != NULL) 266 *funh = (int) IPC_GET_ARG1(answer); 267 } else { 268 if (funh != NULL) 269 *funh = -1; 270 } 271 272 return retval; 273 return EOK; 273 274 } 274 275
Note:
See TracChangeset
for help on using the changeset viewer.