summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-23 09:47:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-04-23 09:47:27 +0100
commit10887fe43038abfe16adb84ba26fa0bf7d4c923b (patch)
treeef6cf9879aaeaed983e9d84cb70a51e88dcfd429 /sal
parent873b1e166178b9d8f1d89d6bf79636a695185bb9 (diff)
cppcheck: redundantAssignment
Change-Id: Ib296edde6e1f3996cbfe46c77810bb5c3da6db73
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/profile.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sal/osl/unx/profile.cxx b/sal/osl/unx/profile.cxx
index a291d5a04df1..ac6a24f56142 100644
--- a/sal/osl/unx/profile.cxx
+++ b/sal/osl/unx/profile.cxx
@@ -1817,11 +1817,8 @@ static osl_TProfileImpl* acquireProfile(oslProfile Profile, bool bWriteable)
if (memcmp(&Stamp, &(pProfile->m_Stamp), sizeof(osl_TStamp)))
{
- bool bRet = false;
-
pProfile->m_Stamp = Stamp;
-
- bRet=loadProfile(pProfile->m_pFile, pProfile);
+ bool bRet = loadProfile(pProfile->m_pFile, pProfile);
SAL_WARN_IF(!bRet, "sal.osl", "loadProfile(pProfile->m_pFile, pProfile) ==> false");
(void)bRet;
}