sda and dba are not used in function code. --- src/device.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/device.c b/src/device.c index c41b0c8..fb7c4f8 100644 --- a/src/device.c +++ b/src/device.c @@ -1818,14 +1818,8 @@ send_reply: } cleanup: - if (!device->temporary) { - bdaddr_t sba, dba; - - adapter_get_address(device->adapter, &sba); - device_get_address(device, &dba, NULL); - + if (!device->temporary) store_profiles(device); - } device->browse = NULL; browse_request_free(req); -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html