diff options
author | Michael Adam <obnox@samba.org> | 2013-01-30 15:50:52 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-02-05 17:36:35 +0100 |
commit | deea99ac36a431befae3af39b7e160ce2d7ba5dc (patch) | |
tree | 5b74b1fef3de4261992a3fc05760d05af5467d77 /source3 | |
parent | 50e3592ace69a919b3196420e56f09ce435302ea (diff) | |
download | samba-deea99ac36a431befae3af39b7e160ce2d7ba5dc.tar.gz samba-deea99ac36a431befae3af39b7e160ce2d7ba5dc.tar.bz2 samba-deea99ac36a431befae3af39b7e160ce2d7ba5dc.zip |
s3:net: reduce indentation in net idmap delete for symmetry and consistency
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_idmap.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/utils/net_idmap.c b/source3/utils/net_idmap.c index 782b553749..bdc4879e88 100644 --- a/source3/utils/net_idmap.c +++ b/source3/utils/net_idmap.c @@ -475,11 +475,13 @@ NTSTATUS dbwrap_delete_mapping(struct db_context *db, TDB_DATA key1, bool force) goto done; } - if (is_valid_mapping) { - status = dbwrap_delete(db, val1); - if (!NT_STATUS_IS_OK(status)) { - DEBUG(1, ("failed to delete: %.*s\n", (int)val1.dsize, val1.dptr)); - } + if (!is_valid_mapping) { + goto done; + } + + status = dbwrap_delete(db, val1); + if (!NT_STATUS_IS_OK(status)) { + DEBUG(1, ("failed to delete: %.*s\n", (int)val1.dsize, val1.dptr)); } done: |