From 189cc8203eac4f327bd375434560e4ebafaad079 Mon Sep 17 00:00:00 2001 From: Eder Ruiz Maria Date: Tue, 2 Apr 2013 19:31:20 -0400 Subject: [PATCH] gatttool: Remove check for bluetooth address parameter on gatt_connect() This check is more appropriate to be done by callers of gatt_connect(). This is already done on interactive mode in attrib/interactive.c and is now also done in non-interactive mode. --- attrib/utils.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/attrib/utils.c b/attrib/utils.c index f9813d1f4..c8c865100 100644 --- a/attrib/utils.c +++ b/attrib/utils.c @@ -50,11 +50,6 @@ GIOChannel *gatt_connect(const gchar *src, const gchar *dst, GError *err = NULL; BtIOSecLevel sec; - /* Remote device */ - if (dst == NULL) { - g_printerr("Remote Bluetooth address required\n"); - return NULL; - } str2ba(dst, &dba); /* Local adapter */ -- 2.11.0