From 8bf08505c1483d0d3a49f703edbed2d31eea6f1f Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 26 Jun 2012 15:12:28 +0200 Subject: s3:net registry import: reduce indentation Pair-Programmed-With: Gregor Beck --- source3/utils/net_registry.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'source3/utils') 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: -- cgit