mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-29 07:04:19 +08:00
scanparam: Remove unnecessary assignment
"scan" will be g_free()'d on this same function, so no need to assign 0 to refresh_cb_id.
This commit is contained in:
parent
9a3b7a8dd8
commit
63eb0e9084
@ -239,10 +239,8 @@ static void scan_param_remove(struct btd_service *service)
|
||||
{
|
||||
struct scan *scan = btd_service_get_user_data(service);
|
||||
|
||||
if (scan->refresh_cb_id) {
|
||||
if (scan->refresh_cb_id)
|
||||
g_attrib_unregister(scan->attrib, scan->refresh_cb_id);
|
||||
scan->refresh_cb_id = 0;
|
||||
}
|
||||
|
||||
btd_device_remove_attio_callback(scan->device, scan->attioid);
|
||||
btd_device_unref(scan->device);
|
||||
|
Loading…
Reference in New Issue
Block a user