* libdiskfs/dir-renamed.c (diskfs_rename_dir): remove a redundant call to
pthread_mutex_unlock.

Signed-off-by: Cyril Roelandt <tipec...@gmail.com>
---
 libdiskfs/dir-renamed.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/libdiskfs/dir-renamed.c b/libdiskfs/dir-renamed.c
index 3990b13..7829373 100644
--- a/libdiskfs/dir-renamed.c
+++ b/libdiskfs/dir-renamed.c
@@ -228,8 +228,6 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, 
const char *fromname,
     diskfs_nput (tnp);
   if (fdp && fdp != tdp)
     pthread_mutex_unlock (&fdp->lock);
-  if (fnp)
-    pthread_mutex_unlock (&fnp->lock);
   if (ds)
     diskfs_drop_dirstat (tdp, ds);
   return err;
-- 
1.7.10.4


Reply via email to