aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-server/slavery.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-09 04:27:45 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-09 04:27:52 +0100
commit468f5376adfc9103526df1805969852c8adfeeab (patch)
treeed31bb52ccf74cd61403f94a2a3f7ec861c21370 /src/mds-server/slavery.c
parentmake some macros easiler on the syntax (diff)
downloadmds-468f5376adfc9103526df1805969852c8adfeeab.tar.gz
mds-468f5376adfc9103526df1805969852c8adfeeab.tar.bz2
mds-468f5376adfc9103526df1805969852c8adfeeab.tar.xz
improve with_mutex and with_mutex_if also
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-server/slavery.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mds-server/slavery.c b/src/mds-server/slavery.c
index 283251a..df6d552 100644
--- a/src/mds-server/slavery.c
+++ b/src/mds-server/slavery.c
@@ -137,9 +137,7 @@ client_t* initialise_client(int client_fd)
pthread_mutex_unlock(&slave_mutex);
free(information);
if (entry != LINKED_LIST_UNUSED)
- {
- with_mutex (slave_mutex, linked_list_remove(&client_list, entry););
- }
+ with_mutex (slave_mutex, linked_list_remove(&client_list, entry););
errno = errno_;
return NULL;
}