From 8247239e41cce468251a642c16707951488b8d16 Mon Sep 17 00:00:00 2001 From: Grzegorz Kolodziejczyk Date: Thu, 26 Feb 2015 12:53:24 +0100 Subject: [PATCH] profiles/network: Simplify id and bridge of server checking 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 26843db78..332525ef2 100644 --- a/profiles/network/server.c +++ b/profiles/network/server.c @@ -435,13 +435,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.47.3