From 4d1f9ff1b8e0e9af99c5a7f5c4f34fecef1001c0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 17 May 2017 16:43:01 +0200 Subject: [PATCH] g_lock: Remove a pointless "else" Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/lib/g_lock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c index d0302cde443..62495ae6aa7 100644 --- a/source3/lib/g_lock.c +++ b/source3/lib/g_lock.c @@ -514,9 +514,8 @@ int g_lock_locks(struct g_lock_ctx *ctx, status = dbwrap_traverse_read(ctx->db, g_lock_locks_fn, &state, &count); if (!NT_STATUS_IS_OK(status)) { return -1; - } else { - return count; } + return count; } NTSTATUS g_lock_dump(struct g_lock_ctx *ctx, const char *name, -- 2.11.4.GIT