From b8a6a0e8f7386fb26049f6778f2ec77c4d209d71 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Fri, 23 Jan 2015 18:25:28 +0100 Subject: [PATCH] android/gatt: Remove not needed initialization dev is never used before being assigned from find_device_by_addr. --- android/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/gatt.c b/android/gatt.c index ad7c7a8cd..fc7d004ee 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -1423,7 +1423,7 @@ static struct app_connection *find_conn_without_app(struct gatt_device *dev) static struct app_connection *find_conn(const bdaddr_t *addr, int32_t app_id) { struct app_connection conn_match; - struct gatt_device *dev = NULL; + struct gatt_device *dev; struct gatt_app *app; /* Check if app is registered */ -- 2.47.3