OSDN Git Service

gatttool: Remove check for bluetooth address parameter on gatt_connect()
authorEder Ruiz Maria <eder.ruiz@openbossa.org>
Tue, 2 Apr 2013 23:31:20 +0000 (19:31 -0400)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 7 Apr 2013 15:11:03 +0000 (18:11 +0300)
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

index f9813d1..c8c8651 100644 (file)
@@ -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 */