From: Johan Hedberg Date: Sun, 6 Jul 2014 10:06:51 +0000 (+0300) Subject: Bluetooth: Fix sending Device Removed when clearing all parameters X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~73^2~87^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19de0825cd8acb1de6fa6a135b1f059446781049;p=pandora-kernel.git Bluetooth: Fix sending Device Removed when clearing all parameters When calling Device Remove with BDADDR_ANY we should in a similar way emit Device Removed events as we do when removing a single device. Since we have to iterate the list and call device_removed() the dedicated hci_conn_params_clear_enabled() is not really useful anymore. This patch removes the helper function and does the event emission and list item removal in a single loop. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed