smbd: Simplify logic in smb2_lease_break_send
authorVolker Lendecke <vl@samba.org>
Thu, 26 Jul 2018 12:52:55 +0000 (14:52 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 7 Sep 2018 15:26:18 +0000 (17:26 +0200)
commit6a7820141908084aaa002d3f4b8a984fcb67d2d9
tree28276298d7564d51f8f2b670da7abd7607391ff6
parentc2281341cb8a3bbe9f94a4b92cd83eb557214e97
smbd: Simplify logic in smb2_lease_break_send

If/else if chains are hard to follow to me. Simplify the code by using
early returns.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/smb2_break.c