[PATCH 12/12] core: Remove dead code

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

 



From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>

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 f30f4f6..528525a 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;
 }
-- 
1.9.1

--
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