git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6358901
)
g_lock: Remove a pointless "else"
author
Volker Lendecke
<vl@samba.org>
Wed, 17 May 2017 14:43:01 +0000
(16:43 +0200)
committer
Volker Lendecke
<vl@samba.org>
Thu, 15 Jun 2017 11:19:14 +0000
(13:19 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/g_lock.c
patch
|
blob
|
history
diff --git
a/source3/lib/g_lock.c
b/source3/lib/g_lock.c
index d0302cde4431eb8cfc31e196e9d575a81f6c30a1..62495ae6aa7aae3662bfdd9102da6a8199a4a03e 100644
(file)
--- 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,