]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/conf-intr.c
Opt: Deleted extra newlines after failure messages
[libucw.git] / ucw / conf-intr.c
index 0b5d5407397ac95d2e37cddeb5bdd533f940e780..a5d323253a42a3eedc06e71f0f7b77622fdde358 100644 (file)
@@ -654,13 +654,5 @@ cf_init_stack(struct cf_context *cc)
 int
 cf_done_stack(struct cf_context *cc)
 {
-  if (cc->stack_level > 0) {
-    msg(L_ERROR, "Unterminated block");
-    return 1;
-  }
-  if (cf_commit_all(cc->postpone_commit ? CF_NO_COMMIT : cc->everything_committed ? CF_COMMIT : CF_COMMIT_ALL))
-    return 1;
-  if (!cc->postpone_commit)
-    cc->everything_committed = 1;
-  return 0;
+  return (cc->stack_level > 0);
 }