From 396ca2ca208ded2de4fbc5526f6b246980da8a19 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Mon, 19 Feb 2018 17:29:45 +0000 Subject: [PATCH] removed redundant cast --- .../FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp index 32422a63ac..e6e6c88b73 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp @@ -217,13 +217,12 @@ SecurityManager& BLE::getSecurityManager() const SecurityManager& BLE::getSecurityManager() const { - const BLE* self = this; static pal::MemorySecurityDb m_db; static pal::vendor::cordio::CordioSecurityManager m_pal; static generic::GenericSecurityManager m_instance( m_pal, m_db, - const_cast(self->getGenericGap()) + const_cast(getGenericGap()) ); return m_instance;