locking: Simplify ctdb_find_lock_context()
authorVolker Lendecke <vl@samba.org>
Mon, 4 Aug 2014 13:57:12 +0000 (13:57 +0000)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 6 Aug 2014 13:47:47 +0000 (23:47 +1000)
commitf41a9374ef984a5a7f2e1b29577237de3b319a9e
tree6a779f3cf3e25ffc584c26cac937a605eaa73c14
parentba303ceaa95104e86a89e4d600d28daf539440cd
locking: Simplify ctdb_find_lock_context()

I like early returns that avoid else branches :-)

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Wed Aug  6 14:44:31 CEST 2014 on sn-devel-104

(Imported from commit e185ff22caf430f680f8bad1edf14bc98dd7c64e)
server/ctdb_lock.c