aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/client.c
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2010-09-28 12:14:33 -0400
committerJohan Hedberg <johan.hedberg@nokia.com>2010-10-04 17:06:48 +0200
commit10840e3c30b29930073cec2dec8c5e13d9cbae86 (patch)
tree040c81d8ac060bb77faf5fb96cb6be44e2863109 /attrib/client.c
parentb1514662a0f04b11172ca97adfe4cac3c39536b2 (diff)
downloadbluez-10840e3c30b29930073cec2dec8c5e13d9cbae86.tar.gz
bluez-10840e3c30b29930073cec2dec8c5e13d9cbae86.tar.xz
bluez-10840e3c30b29930073cec2dec8c5e13d9cbae86.zip
Remove unnecessary check for watcher path
Diffstat (limited to 'attrib/client.c')
-rw-r--r--attrib/client.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/attrib/client.c b/attrib/client.c
index f93ea0a7..5c02f40b 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -177,14 +177,6 @@ static int characteristic_handle_cmp(gconstpointer a, gconstpointer b)
return chr->handle - handle;
}
-static int characteristic_path_cmp(gconstpointer a, gconstpointer b)
-{
- const struct characteristic *chr = a;
- const char *path = b;
-
- return g_strcmp0(chr->path, path);
-}
-
static int watcher_cmp(gconstpointer a, gconstpointer b)
{
const struct watcher *watcher = a;
@@ -449,10 +441,6 @@ static DBusMessage *register_watcher(DBusConnection *conn,
DBUS_TYPE_INVALID))
return invalid_args(msg);
- if (!g_slist_find_custom(prim->chars, path, characteristic_path_cmp))
- return g_dbus_create_error(msg, ERROR_INTERFACE ".Failed",
- "Invalid path");
-
if (gatt->attrib != NULL) {
gatt->attrib = g_attrib_ref(gatt->attrib);
goto done;