summaryrefslogtreecommitdiff
path: root/tests/test-atomic.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2014-03-11 13:16:54 -0700
committerBen Pfaff <blp@nicira.com>2014-03-13 12:45:47 -0700
commit8917f72cbb04fb32dc29f93475bcd2de3011d442 (patch)
treec354424c44546c3da4d6da8200560a381c70df2e /tests/test-atomic.c
parent6a36690c200a08dfbd5648269e3e1ab837d1b726 (diff)
downloadopenvswitch-8917f72cbb04fb32dc29f93475bcd2de3011d442.tar.gz
ovs-atomic: Delete atomic, atomic_flag, ovs_refcount destroy functions.
None of the atomic implementations need a destroy function anymore, so it's "more standard" and more convenient for users to get rid of them. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Andy Zhou <azhou@nicira.com>
Diffstat (limited to 'tests/test-atomic.c')
-rw-r--r--tests/test-atomic.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test-atomic.c b/tests/test-atomic.c
index bc00df139..887789bbe 100644
--- a/tests/test-atomic.c
+++ b/tests/test-atomic.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013 Nicira, Inc.
+ * Copyright (c) 2013, 2014 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -59,8 +59,6 @@
ovs_assert(orig == 2); \
atomic_read(&x, &value); \
ovs_assert(value == 8); \
- \
- atomic_destroy(&x); \
}
static void