Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat_ops.c

    r80ec9b8 rb33870b  
    657657                        return rc;
    658658                }
    659 
    660                 rc = exfat_zero_cluster(bs, service_id, nodep->firstc);
    661                 if (rc != EOK) {
    662                         (void) exfat_node_put(FS_NODE(nodep));
    663                         return rc;
    664                 }
    665 
    666659                nodep->size = BPC(bs);
    667660        } else {
     
    746739         */
    747740        rc = exfat_directory_write_file(&di, name);
    748         if (rc != EOK) {
    749                 (void) exfat_directory_close(&di);
    750                 fibril_mutex_unlock(&parentp->idx->lock);
    751                 return rc;
    752         }
     741        if (rc != EOK)
     742                return rc;
    753743        rc = exfat_directory_close(&di);
    754         if (rc != EOK) {
    755                 fibril_mutex_unlock(&parentp->idx->lock);
    756                 return rc;
    757         }
     744        if (rc != EOK)
     745                return rc;
    758746
    759747        fibril_mutex_unlock(&parentp->idx->lock);
     
    12701258                exfat_directory_t di;
    12711259                rc = exfat_directory_open(nodep, &di);
    1272                 if (rc != EOK)
    1273                         goto err;
    1274 
     1260                if (rc != EOK) goto err;
    12751261                rc = exfat_directory_seek(&di, pos);
    12761262                if (rc != EOK) {
     
    12821268                    &df, &ds);
    12831269                if (rc == EOK)
    1284                         goto hit;
    1285                 else if (rc == ENOENT)
    1286                         goto miss;
    1287 
    1288                 (void) exfat_directory_close(&di);
     1270                    goto hit;
     1271                if (rc == ENOENT)
     1272                    goto miss;
    12891273
    12901274err:
     
    12951279miss:
    12961280                rc = exfat_directory_close(&di);
    1297                 if (rc != EOK)
     1281                if (rc!=EOK)
    12981282                        goto err;
    12991283                rc = exfat_node_put(fn);
     
    14131397
    14141398        (void) async_data_write_finalize(callid,
    1415             b->data + pos % BPS(bs), bytes);
     1399                b->data + pos % BPS(bs), bytes);
    14161400        b->dirty = true;                /* need to sync block */
    14171401        rc = block_put(b);
Note: See TracChangeset for help on using the changeset viewer.