From 224b6b8088b725c5f3755fdf377f78b13dcdf31e Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 20 Dec 2013 14:12:06 +0200 Subject: [PATCH] android: Add clarifying comment to store_device_info() --- android/bluetooth.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/android/bluetooth.c b/android/bluetooth.c index 047ddb158..48f518652 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -194,8 +194,11 @@ static void store_device_info(struct device *dev) char **uuids = NULL; char *str; + /* We only store bonded devices and need to modify the storage + * if the state is either NONE or BONDED. + */ if (dev->bond_state != HAL_BOND_STATE_BONDED && - dev->bond_state != HAL_BOND_STATE_NONE) + dev->bond_state != HAL_BOND_STATE_NONE) return; ba2str(&dev->bdaddr, addr); -- 2.47.3