Re: [PATCH v3] obexd/src/manager: Fix the double check for agent

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

 



Hi,

On Mon, Sep 22, 2014 at 10:12 AM, Gowtham Anandha Babu
<gowtham.ab@xxxxxxxxxxx> wrote:
> Removes the check for NULL agent.
> ---
> agent_free() function contains the NULL check already.
> ---
>  obexd/src/manager.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/obexd/src/manager.c b/obexd/src/manager.c
> index 326e56f..97ae278 100644
> --- a/obexd/src/manager.c
> +++ b/obexd/src/manager.c
> @@ -521,8 +521,7 @@ void manager_cleanup(void)
>
>         /* FIXME: Release agent? */
>
> -       if (agent)
> -               agent_free(agent);
> +       agent_free(agent);
>
>         g_dbus_detach_object_manager(connection);
>
> --
> 1.9.1

Pushed, thanks.


-- 
Luiz Augusto von Dentz
--
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