Changeset cf56332 in mainline
- Timestamp:
- 2012-08-17T22:18:30Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1cf0a17
- Parents:
- 0d7eb0f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/isa/isa.c
r0d7eb0f rcf56332 268 268 { 269 269 char *line = str; 270 *next = NULL; 270 271 271 272 if (str == NULL) { 272 *next = NULL;273 273 return NULL; 274 274 } … … 280 280 if (*str != '\0') { 281 281 *next = str + 1; 282 } else {283 *next = NULL;284 282 } 285 283 … … 446 444 { 447 445 char *id = NULL; 448 int score = 0;449 446 char *end = NULL; 450 int rc;451 447 452 448 val = skip_spaces(val); 453 449 454 score = (int)strtol(val, &end, 10);450 int score = (int)strtol(val, &end, 10); 455 451 if (val == end) { 456 452 ddf_msg(LVL_ERROR, "Cannot read match score for function " … … 470 466 "function %s", id, score, fun->fnode->name); 471 467 472 rc = ddf_fun_add_match_id(fun->fnode, id, score);468 int rc = ddf_fun_add_match_id(fun->fnode, id, score); 473 469 if (rc != EOK) { 474 470 ddf_msg(LVL_ERROR, "Failed adding match ID: %s", … … 575 571 static int isa_dev_add(ddf_dev_t *dev) 576 572 { 577 isa_bus_t *isa;578 579 573 ddf_msg(LVL_DEBUG, "isa_dev_add, device handle = %d", 580 574 (int) dev->handle); 581 575 582 isa = ddf_dev_data_alloc(dev, sizeof(isa_bus_t));576 isa_bus_t *isa = ddf_dev_data_alloc(dev, sizeof(isa_bus_t)); 583 577 if (isa == NULL) 584 578 return ENOMEM; … … 617 611 { 618 612 isa_bus_t *isa = ISA_BUS(dev); 619 int rc;620 613 621 614 fibril_mutex_lock(&isa->mutex); … … 625 618 isa_fun_t, bus_link); 626 619 627 rc = ddf_fun_offline(fun->fnode);620 int rc = ddf_fun_offline(fun->fnode); 628 621 if (rc != EOK) { 629 622 fibril_mutex_unlock(&isa->mutex);
Note:
See TracChangeset
for help on using the changeset viewer.