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:
Anderson Lizardo 2013-07-29 09:59:29 -04:00 committed by Johan Hedberg
parent 9a3b7a8dd8
commit 63eb0e9084

View File

@ -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);