Re: [RFC BlueZ v0 04/10] device: Remove misleading function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Vinicius,

On Fri, Mar 1, 2013 at 7:22 PM, Vinicius Costa Gomes
<vinicius.gomes@xxxxxxxxxxxxx> wrote:
> @@ -3049,7 +3044,9 @@ static void register_all_services(struct btd_device *device, GSList *services)
>         g_slist_free_full(device->primaries, g_free);
>         device->primaries = NULL;

I think you can remove the NULL assignment above, as device->primaries
is updated just below.

>
> -       device_register_primaries(device, g_slist_copy(services), -1);
> +       /* And keep the new one */
> +       device->primaries = g_slist_copy(services);
> +
>         if (removed)
>                 device_remove_profiles(device, removed);

Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
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


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux