This patch simplifies checking of server record id and bridge, if those exists. --- profiles/network/server.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/profiles/network/server.c b/profiles/network/server.c index ebbe056..2b252d9 100644 --- a/profiles/network/server.c +++ b/profiles/network/server.c @@ -434,13 +434,7 @@ static void confirm_event(GIOChannel *chan, gpointer user_data) } ns = find_server(na->servers, BNEP_SVC_NAP); - if (!ns) - goto drop; - - if (!ns->record_id) - goto drop; - - if (!ns->bridge) + if (!ns || !ns->record_id || !ns->bridge) goto drop; na->setup = g_new0(struct network_session, 1); -- 2.1.0 -- 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