From 045af600f299f55f5a5b09a23b753ba97880aa06 Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Wed, 13 May 2009 14:33:21 -0400 Subject: Take advantage of the easier-to-use thread macros - Now that we initialize for the non-thread-safe case in the macro, there's no need to do it here too. Derrell --- lib/util/talloc_stack.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib/util/talloc_stack.c') diff --git a/lib/util/talloc_stack.c b/lib/util/talloc_stack.c index f1727ce469..596efbf6cd 100644 --- a/lib/util/talloc_stack.c +++ b/lib/util/talloc_stack.c @@ -60,14 +60,6 @@ static smb_thread_once_t ts_initialized = SMB_THREAD_ONCE_INIT; static void talloc_stackframe_init(void * unused) { - if (!global_tfp) { - /* Non-thread safe init case. */ - if (SMB_THREAD_ONCE_IS_INITIALIZED(ts_initialized)) { - return; - } - SMB_THREAD_ONCE_INITIALIZE(ts_initialized); - } - if (SMB_THREAD_CREATE_TLS("talloc_stackframe", global_ts)) { smb_panic("talloc_stackframe_init create_tls failed"); } -- cgit