Changeset ebf1011 in mainline for uspace/srv/vfs/vfs_ipc.c


Ignore:
Timestamp:
2017-03-21T19:19:56Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c990ee6
Parents:
3648e184
Message:

Prefer optically less dense code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_ipc.c

    r3648e184 rebf1011  
    140140        /* Retrieve the old path. */
    141141        rc = async_data_write_accept((void **) &old, true, 0, 0, 0, NULL);
    142         if (rc != EOK) {
     142        if (rc != EOK)
    143143                goto out;
    144         }
    145144       
    146145        /* Retrieve the new path. */
    147146        rc = async_data_write_accept((void **) &new, true, 0, 0, 0, NULL);
    148         if (rc != EOK) {
     147        if (rc != EOK)
    149148                goto out;
    150         }
    151149       
    152150        size_t olen;
     
    168166        async_answer_0(rid, rc);
    169167
    170         if (old) {
     168        if (old)
    171169                free(old);
    172         }
    173         if (new) {
     170        if (new)
    174171                free(new);
    175         }
    176172}
    177173
     
    218214        char *path;
    219215        int rc = async_data_write_accept((void **) &path, true, 0, 0, 0, NULL);
    220         if (rc == EOK) {
     216        if (rc == EOK)
    221217                rc = vfs_op_unlink2(parentfd, expectfd, wflag, path);
    222         }
    223218       
    224219        async_answer_0(rid, rc);
Note: See TracChangeset for help on using the changeset viewer.