diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-06 13:27:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-07 07:56:39 +0100 |
commit | 2e2d736ccbb21daae91603732c87d5375ede1b47 (patch) | |
tree | 6621e351d38dff77dc16c6413767f4baa3c76326 /sal | |
parent | 1647bc1309dcd313dff2614f4844b71b1c558dee (diff) |
loplugin:collapseif in framework..sal
Change-Id: I3068b18f5cff024a48a8f8c68d69cadad30fe4d5
Reviewed-on: https://gerrit.libreoffice.org/62953
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/rtl/random.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sal/rtl/random.cxx b/sal/rtl/random.cxx index 224a345a3094..836d30889b80 100644 --- a/sal/rtl/random.cxx +++ b/sal/rtl/random.cxx @@ -294,11 +294,8 @@ rtlRandomError SAL_CALL rtl_random_getBytes ( if (pImpl->m_hDigest || !osl_get_system_random_data(static_cast< char* >(Buffer), Bytes)) { - if (!pImpl->m_hDigest) - { - if (!initPool (pImpl)) - return rtl_Random_E_Unknown; - } + if (!pImpl->m_hDigest && !initPool(pImpl)) + return rtl_Random_E_Unknown; readPool(pImpl, pBuffer, Bytes); } return rtl_Random_E_None; |