diff options
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/dir-renamed.c | 2 | ||||
-rw-r--r-- | libdiskfs/io-write.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/libdiskfs/dir-renamed.c b/libdiskfs/dir-renamed.c index d73dc282..9b7ec3a6 100644 --- a/libdiskfs/dir-renamed.c +++ b/libdiskfs/dir-renamed.c @@ -132,7 +132,7 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, const char *fromname, if (tdp->dn_stat.st_nlink == diskfs_link_max - 1) { err = EMLINK; - return EMLINK; + goto out; } tdp->dn_stat.st_nlink++; tdp->dn_set_ctime = 1; diff --git a/libdiskfs/io-write.c b/libdiskfs/io-write.c index 26e0be43..2967c4c8 100644 --- a/libdiskfs/io-write.c +++ b/libdiskfs/io-write.c @@ -56,7 +56,6 @@ diskfs_S_io_write (struct protid *cred, goto out; } - err = 0; while (off + (off_t) datalen > np->allocsize) { err = diskfs_grow (np, off + datalen, cred); |