From 8d9e681d1ce2da6d662d8e98b7fc65f5c91e383f Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Fri, 4 Jul 2014 16:44:01 +0300 Subject: [PATCH] core: Remove dead code rfcomm can only be NULL in this path --- src/profile.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/profile.c b/src/profile.c index f30f4f6af..528525ac2 100644 --- a/src/profile.c +++ b/src/profile.c @@ -1295,10 +1295,6 @@ failed: ext->servers = g_slist_remove(ext->servers, l2cap); ext_io_destroy(l2cap); } - if (rfcomm) { - ext->servers = g_slist_remove(ext->servers, rfcomm); - ext_io_destroy(rfcomm); - } return 0; } -- 2.47.3