summaryrefslogtreecommitdiff
path: root/android/gatt.c
diff options
context:
space:
mode:
authorJakub Tyszkowski <jakub.tyszkowski@tieto.com>2015-02-10 13:48:13 +0100
committerSzymon Janc <szymon.janc@tieto.com>2015-02-11 11:37:28 +0100
commit355770caa64936e2798586dd13f45a919221bd0f (patch)
treebaf91161a43f94ff0f239e1daede69cba5f068fd /android/gatt.c
parent56ad27f2893abf971761b2dd5806eb43fc2cf821 (diff)
downloadbluez-355770caa64936e2798586dd13f45a919221bd0f.tar.gz
android/gatt: Remove reduntant comparison
This is not needed as we only have one type or the other.
Diffstat (limited to 'android/gatt.c')
-rw-r--r--android/gatt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/gatt.c b/android/gatt.c
index bdbb43bb2..d958965e6 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -881,7 +881,7 @@ static void notify_app_connect_status(struct app_connection *conn,
if (conn->app->type == GATT_CLIENT)
send_client_connect_status_notify(conn, status);
- else if (conn->app->type == GATT_SERVER)
+ else
send_server_connection_state_notify(conn, !status);
}