From 76ab0a2b82db76ee48e98ae9ca6a4af18a99f68c Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Wed, 17 Jul 2019 13:31:27 +1000 Subject: ctdb-mutex: Drop unneeded assignment clang warns: ctdb/server/ctdb_mutex_fcntl_helper.c:61:3: warning: Value stored to 'fd' is never read Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/server/ctdb_mutex_fcntl_helper.c | 1 - 1 file changed, 1 deletion(-) (limited to 'ctdb/server') diff --git a/ctdb/server/ctdb_mutex_fcntl_helper.c b/ctdb/server/ctdb_mutex_fcntl_helper.c index 7b66c78cd8e..166d9c2760e 100644 --- a/ctdb/server/ctdb_mutex_fcntl_helper.c +++ b/ctdb/server/ctdb_mutex_fcntl_helper.c @@ -50,7 +50,6 @@ static char fcntl_lock(const char *file, int *outfd) if (fcntl(fd, F_SETLK, &lock) != 0) { int saved_errno = errno; close(fd); - fd = -1; if (saved_errno == EACCES || saved_errno == EAGAIN) { /* Lock contention, fail silently */ -- cgit v1.2.1