summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-02-08 22:26:44 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-02-08 22:51:59 +0100
commit8c27bd9b14715c05d66eaa5e0ef10a6c926c8c1f (patch)
tree39fee5aa25ed852b70e7d514df2f7eae01e4cadc /sal/rtl
parenta4547696d272588374fd391233626df986275870 (diff)
Some cppcheck cleaning
Change-Id: I1dc8415569f7133d57c495e47f038e98d50d64d7
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/source/alloc_cache.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sal/rtl/source/alloc_cache.cxx b/sal/rtl/source/alloc_cache.cxx
index a64bd4244af5..745c0a8e2348 100644
--- a/sal/rtl/source/alloc_cache.cxx
+++ b/sal/rtl/source/alloc_cache.cxx
@@ -937,11 +937,9 @@ rtl_cache_deactivate (
rtl_cache_type * cache
)
{
- int active = 1;
-
/* remove from cache list */
RTL_MEMORY_LOCK_ACQUIRE(&(g_cache_list.m_lock));
- active = QUEUE_STARTED_NAMED(cache, cache_) == 0;
+ int active = QUEUE_STARTED_NAMED(cache, cache_) == 0;
QUEUE_REMOVE_NAMED(cache, cache_);
RTL_MEMORY_LOCK_RELEASE(&(g_cache_list.m_lock));