Return-Path: From: Claudio Takahasi To: linux-bluetooth@vger.kernel.org Cc: Claudio Takahasi Subject: [PATCH 5/5] Remove unneeded variable Date: Wed, 15 Dec 2010 16:54:12 -0300 Message-Id: <1292442852-26457-5-git-send-email-claudio.takahasi@openbossa.org> In-Reply-To: <1292442852-26457-1-git-send-email-claudio.takahasi@openbossa.org> References: <1292442852-26457-1-git-send-email-claudio.takahasi@openbossa.org> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- src/glib-helper.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/glib-helper.c b/src/glib-helper.c index edc46d8..8cf29ae 100644 --- a/src/glib-helper.c +++ b/src/glib-helper.c @@ -525,7 +525,6 @@ int bt_discover_primary(const bdaddr_t *src, const bdaddr_t *dst, int psm, { struct gattrib_context *ctxt; GIOChannel *io; - GError *gerr = NULL; ctxt = g_try_new0(struct gattrib_context, 1); if (ctxt == NULL) @@ -538,14 +537,14 @@ int bt_discover_primary(const bdaddr_t *src, const bdaddr_t *dst, int psm, ctxt->destroy = destroy; if (psm < 0) - io = bt_io_connect(BT_IO_L2CAP, connect_cb, ctxt, NULL, &gerr, + io = bt_io_connect(BT_IO_L2CAP, connect_cb, ctxt, NULL, NULL, BT_IO_OPT_SOURCE_BDADDR, src, BT_IO_OPT_DEST_BDADDR, dst, BT_IO_OPT_CID, GATT_CID, BT_IO_OPT_SEC_LEVEL, sec_level, BT_IO_OPT_INVALID); else - io = bt_io_connect(BT_IO_L2CAP, connect_cb, ctxt, NULL, &gerr, + io = bt_io_connect(BT_IO_L2CAP, connect_cb, ctxt, NULL, NULL, BT_IO_OPT_SOURCE_BDADDR, src, BT_IO_OPT_DEST_BDADDR, dst, BT_IO_OPT_PSM, psm, -- 1.7.3.3