Fix Svace defect, remove unreachable statement. 30/223430/3
authorDariusz Michaluk <d.michaluk@samsung.com>
Wed, 29 Jan 2020 16:47:48 +0000 (17:47 +0100)
committerTomasz Swierczek <t.swierczek@samsung.com>
Mon, 3 Feb 2020 06:01:07 +0000 (06:01 +0000)
Change-Id: I0bd14456de4e8b54e1753dfa8be2cf8d0b1b5217

src/license-manager/agent/agent.cpp

index 6faa3caec28a04c5e7a291d202d0fdad5ac4b653..71fe1935cdb2150cf6623421dab3be04525cbec0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2017-2020 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -30,11 +30,7 @@ bool Agent::initialize(AgentLogic *logic) {
         return false;
 
     m_logic = logic;
-
-    if (!m_cynara) {
-        return CYNARA_API_SUCCESS == cynara_agent_initialize(&m_cynara, Config::AgentName);
-    }
-    return false;
+    return CYNARA_API_SUCCESS == cynara_agent_initialize(&m_cynara, Config::AgentName);
 }
 
 void Agent::exitLoop() {