From b775db77fe965b6b1768d75198fc9dd201e83818 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sun, 12 Aug 2007 13:11:19 +0000 Subject: l2cap_connect doesn't have to call finalize_discovery as the caller takes care of it (when getting a failure return value) --- audio/avdtp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/audio/avdtp.c b/audio/avdtp.c index fd99153d..c3bbccc6 100644 --- a/audio/avdtp.c +++ b/audio/avdtp.c @@ -1132,7 +1132,6 @@ static int l2cap_connect(struct avdtp *session) if (!(errno == EAGAIN || errno == EINPROGRESS)) { error("Connect failed. %s(%d)", strerror(errno), errno); - finalize_discovery(session, errno); g_io_channel_close(io); g_io_channel_unref(io); return -errno; -- cgit