Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/isa/isa.c

    r6efd162 rebc9c2c  
    245245        bool opened = false;
    246246        int fd;
    247         size_t len;
    248         ssize_t r;
     247        size_t len = 0;
    249248
    250249        fd = open(conf_path, O_RDONLY);
     
    270269        }
    271270
    272         r = read_all(fd, buf, len);
    273         if (r < 0) {
     271        if (0 >= read(fd, buf, len)) {
    274272                ddf_msg(LVL_ERROR, "Unable to read file '%s'.", conf_path);
    275273                goto cleanup;
Note: See TracChangeset for help on using the changeset viewer.