From: Piotr Sawicki
Date: Tue, 11 Jul 2017 07:00:29 +0000 (+0200)
Subject: Remove superfluous check in Sock
X-Git-Tag: submit/tizen/20170727.154157~1^2~22
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9233a4db5307215ca0b144f3e380aab626cb50d;p=platform%2Fcore%2Fsecurity%2Faskuser.git
Remove superfluous check in Sock
Change-Id: I160c69f448e0b3b92061392ed5729a7c3e97ce70
---
diff --git a/src/ipc-lib/sock.cpp b/src/ipc-lib/sock.cpp
index fccce16..fe8f22b 100644
--- a/src/ipc-lib/sock.cpp
+++ b/src/ipc-lib/sock.cpp
@@ -126,10 +126,6 @@ int Sock::connect(const std::string &path) {
break;
}
- if (m_fd != -1) {
- return -1;
- }
-
if (policySystemD) {
m_fd = getSocketFromSystemD();
if (m_fd >= 0) {