diff options
author | Michael Adam <obnox@samba.org> | 2012-06-26 15:12:28 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-06-26 19:57:19 +0200 |
commit | 8bf08505c1483d0d3a49f703edbed2d31eea6f1f (patch) | |
tree | 859cce8e46aed2d440b260a93a2972fabd38454e /source3 | |
parent | d5ab3282e454a4581f77250e54ba11761a9c2a63 (diff) | |
download | samba-8bf08505c1483d0d3a49f703edbed2d31eea6f1f.tar.gz samba-8bf08505c1483d0d3a49f703edbed2d31eea6f1f.tar.bz2 samba-8bf08505c1483d0d3a49f703edbed2d31eea6f1f.zip |
s3:net registry import: reduce indentation
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_registry.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c index 803e12181b..d12e5879a5 100644 --- a/source3/utils/net_registry.c +++ b/source3/utils/net_registry.c @@ -1298,13 +1298,14 @@ static int net_registry_import(struct net_context *c, int argc, if (ret < 0) { d_printf("Transaction canceled!\n"); regdb_transaction_cancel(); - } else { - werr = regdb_transaction_commit(); - if (!W_ERROR_IS_OK(werr)) { - d_printf("Failed to commit transaction on regdb: %s\n", - win_errstr(werr)); - ret = -1; - } + goto done; + } + + werr = regdb_transaction_commit(); + if (!W_ERROR_IS_OK(werr)) { + d_printf("Failed to commit transaction on regdb: %s\n", + win_errstr(werr)); + ret = -1; } done: |