From: liuchang0812 Date: Tue, 7 Feb 2017 03:10:32 +0000 (+0800) Subject: msg/async: remove useless close function X-Git-Tag: v12.0.1~481^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F13286%2Fhead;p=ceph.git msg/async: remove useless close function fix coverity cid 1395314: it's invalid to pass a negative value to close function, and we have closed socket in net.connect/nonblock_connect in error cases indeed Signed-off-by: liuchang0812 --- diff --git a/src/msg/async/PosixStack.cc b/src/msg/async/PosixStack.cc index 67495c60c988..7651961ec252 100644 --- a/src/msg/async/PosixStack.cc +++ b/src/msg/async/PosixStack.cc @@ -345,7 +345,6 @@ int PosixWorker::connect(const entity_addr_t &addr, const SocketOptions &opts, C } if (sd < 0) { - ::close(sd); return -errno; }