obexd: Fix the double check for agent 37/32237/1
authorGowtham Anandha Babu <gowtham.ab@samsung.com>
Wed, 17 Dec 2014 05:55:49 +0000 (11:25 +0530)
committerGowtham Anandha Babu <gowtham.ab@samsung.com>
Wed, 17 Dec 2014 05:55:49 +0000 (11:25 +0530)
Removes the check for NULL agent.

Git repo link:
http://git.kernel.org/cgit/bluetooth/bluez.git/commit/?id=cf5361615e4bf2468fe963f690b2c398071e215f

Change-Id: I5c0ab31c1b36de6007cb01ffe688aeafb4c6cebf

obexd/src/manager.c

index 3e4e375..1002701 100644 (file)
@@ -653,8 +653,7 @@ void manager_cleanup(void)
 
        /* FIXME: Release agent? */
 
-       if (agent)
-               agent_free(agent);
+       agent_free(agent);
 
        g_dbus_detach_object_manager(connection);