* libdiskfs/ifsock.c (diskfs_S_ifsock_getsockaddr): remove a redundant call to
pthread_mutex_unlock.

Signed-off-by: Cyril Roelandt <tipec...@gmail.com>
---
 libdiskfs/ifsock.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/libdiskfs/ifsock.c b/libdiskfs/ifsock.c
index 1da81b8..9199fdf 100644
--- a/libdiskfs/ifsock.c
+++ b/libdiskfs/ifsock.c
@@ -102,10 +102,7 @@ diskfs_S_ifsock_getsockaddr (struct protid *cred,
          goto retry;
        }
       if (err)
-       {
-         pthread_mutex_unlock (&np->lock);
-         return EIEIO;
-       }
+       return EIEIO;
 
       pthread_mutex_lock (&np->lock);
       if (np->sockaddr != MACH_PORT_NULL)
-- 
1.7.10.4


Reply via email to