tdb: Make tdb_new_database() follow a more conventional style
commit3109b541c9b2f0063e1ccb0cdaec0a8e388b29b4
authorVolker Lendecke <vl@samba.org>
Fri, 14 Dec 2012 14:53:08 +0000 (14 15:53 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2012 10:57:01 +0000 (21 11:57 +0100)
tree8ff6c508265e04586a0138b78f122f08867c04ec
parentd972e6fa74b6499403d4c3d3c6a84cbda7eded39
tdb: Make tdb_new_database() follow a more conventional style

We usually "goto fail" on every error and then in normal flow set the
return variable to success. This patch removes a comment which from my
point of view is now obsolete. It violates the {} rule from README.Coding
here in favor of the style used in this function.

Reviewed-by: Rusty Russell <rusty@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/common/open.c