From 71cb57ba3556aabf908b01302f27c81760485612 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Sat, 23 Nov 2013 23:14:55 +0100 Subject: [PATCH] core: trivial change in nm_ap_set_ssid Simplify check in nm_ap_set_ssid(). Note that previously there was no bug here in case of self assignment, this just makes it more explicit. Signed-off-by: Thomas Haller --- src/nm-wifi-ap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-wifi-ap.c b/src/nm-wifi-ap.c index fb12754b10..b7af653289 100644 --- a/src/nm-wifi-ap.c +++ b/src/nm-wifi-ap.c @@ -794,7 +794,7 @@ nm_ap_set_ssid (NMAccessPoint *ap, const GByteArray * ssid) priv = NM_AP_GET_PRIVATE (ap); - if ((ssid == priv->ssid) && ssid == NULL) + if (ssid == priv->ssid) return; /* same SSID */