From 890bf82aff427e6e7db1be115f301baff0e9c443 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 26 Apr 2017 11:28:42 +0300 Subject: [PATCH] Bluetooth: conn: Remove shadow iterator variable This function already has an 'i' variable on the top-level, so no need to declare a second one that'd just shadow the original. Change-Id: I5dfa4df2c4793be220a40ac642b19bf440e80220 Signed-off-by: Johan Hedberg --- subsys/bluetooth/host/conn.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/subsys/bluetooth/host/conn.c b/subsys/bluetooth/host/conn.c index 71889493abe..0f138765865 100644 --- a/subsys/bluetooth/host/conn.c +++ b/subsys/bluetooth/host/conn.c @@ -2044,8 +2044,6 @@ int bt_conn_init(void) /* Initialize background scan */ if (IS_ENABLED(CONFIG_BLUETOOTH_CENTRAL)) { - int i; - for (i = 0; i < ARRAY_SIZE(conns); i++) { struct bt_conn *conn = &conns[i];