From: Volker Lendecke Date: Wed, 17 May 2017 14:43:01 +0000 (+0200) Subject: g_lock: Remove a pointless "else" X-Git-Tag: ldb-1.1.31~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d1f9ff1b8e0e9af99c5a7f5c4f34fecef1001c0;p=thirdparty%2Fsamba.git g_lock: Remove a pointless "else" Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- 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,